I've been attempting some Win32 programming for a while now, but I just can't seem to find a function where I can get the HWND by the resource ID.
Just an example:
HWND btn = getHWNDFromResource((HMENU)IDC_BUTTON_OK); // What function should I use here?
This is just example code, and not my real code, it's used in a diffrent way in my program.
getHWNDFromResource is a non-existant function and I hope to hear from you how I actually should solve this problem.