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:
CreateWindowEx(NULL, L"BUTTON", text, WS_TABSTOP|WS_VISIBLE|WS_CHILD|BS_DEFPUSHBUTTON, x, y, width, height, parent, (HMENU)IDC_BUTTON_OK, GetModuleHandle(NULL), NULL); 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.
Hope to hear from you!