Advertisement

Handle

Started by September 28, 2000 12:11 PM
3 comments, last by SKSlayer 24 years, 1 month ago
I made a little dialog box (called with DialogBox(...)) for my app so you can choose your res ... The only problem is, when I need to play around with values in Dropdown list, combo box and stuff, I need their handle, how do I get their handle from their name (IDC_STUFF)
(you can find me on IRC : #opengl on undernet)
HWND GetDlgItem(
HWND hDlg, // handle of dialog box
int nIDDlgItem // identifier of control
);

That''s what you are looking for I hope.

Nate Miller
http://nate.scuzzy.net
Advertisement
Try this dood:


HWND hWnd;
hWnd = getActiveWindow();

that will return the active window handle

i think this is what you want.

to Code, or Not To Code
to Code, or Not To Code
cxi2, no, that''s now what he wants... Nate got it right, though...

-------------------------------
That's just my 200 bucks' worth!

..-=gLaDiAtOr=-..
Thanks a lot
(you can find me on IRC : #opengl on undernet)

This topic is closed to new replies.

Advertisement