Get the (resource) ID from hWnd
===

In ResourceHacker, when you open an executable (windows), you can see identifiers associated with dialogs. Does anyone have an idea from where they come? I mean, how can I do the same in my C++ program to get the ID from a HWND?

BTW, GetWindowLong(hwnd, GWL_ID) returns 0.


Thanks