Skip to main content
gamedev.net
🔒 Locked

Windows handles?

Started by Unimatrix_001 1 reply 250+ views
Original Post
Unimatrix_001
Unimatrix_001
How do I retrieve the handle of a control on a dialog and store it in a variable for ruture reference? Thanks Uni
Rickmeister
Rickmeister
Use GetDlgItem

HWND hControl = GetDlgItem(hDlg, IDC_CONTROL);

hDlg = handle of Dialogbox
IDC_CONTROL = the name of the control's resource..
More info at MSDN
[edit] damn tags!!!

[edited by - Rickmeister on June 2, 2002 4:04:09 PM]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.