Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7990355
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T12:59:02+00:00 2026-06-04T12:59:02+00:00

How can I obtain the window id – unique number associated with a Win32

  • 0

How can I obtain the window “id” – unique number associated with a Win32 window?

Can I obtain the id within a NSIS script(.nsi file)? If not what outside program can I use? ResHacker is not showing me the correct dialogs when I run my installer for some reason. I’ve heard of GDISpy or something with a name similar to that.

What I am trying to do is change the z index of some windows within a MUI2 pages and to set checkboxes backgrounds to transparent within a custom page.

What your easiest method for finding out a windows unique id?

EDIT
Sorry I’m not familiar with the correct term is for what I am talking about. I am not talking about the HWND variable/handle I am talking about that windows unique window id thats an integer.

# In NSIS 
GetDlgItem $R0 ${parentHWND} 1012 # the 1012 is what I am referring to as the window ID 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T12:59:04+00:00Added an answer on June 4, 2026 at 12:59 pm

    The ids for a dialogs child controls can be found with a spy tool like Winspy++ (This tool displays it in hex so convert with calc.exe or prefix the number with 0x in the .nsi)

    NSIS has two nested dialogs, the outer dialog hosts the next, back and cancel buttons. The inner dialog hosts the controls for the current page.

    To get the handle to a button in the outer dialog:

    GetDlgItem $1 $hwndparent 1
    

    And for the inner dialog:

    FindWindow $0 "#32770" "" $HWNDPARENT ;Find inner dialog first
    GetDlgItem $1 $0 0x666
    

    For a custom page, the id (and z-order) depends on the order you create the controls in…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given a file in UTF-8, containing characters in various languages, how can I obtain
I can't find a way to obtain a reference the Window containing an arbitrary
Can I get the obtain the size of the browser window in AS3? The
I have a Visual Studio 2010 extension, a .vsix file. I can obtain the
Whilst inside an iframe, can you please let me know how I can obtain
I have a Version class that contains a version_number string, and can obtain a
Can I obtain the source code for the core Ada libraries? I'd like to
How can I obtain the physical machine name that my jvm is running in?
How can you obtain the system clock's current time of day (in milliseconds) in
How can I obtain kerning information for GDI to then use in GetKerningPairs ?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.