Answer the question
In order to leave comments, you need to log in
How to get button IDs created via CreateWindow() WinAPI?
I create buttons in a vector (because a different number depending on the conditions)
static vector<HWND> hBut;
hBut.push_back((CreateWindow(L"BUTTON", buf, WS_CHILD | WS_VISIBLE | WS_TABSTOP, x, y, nWidth, nHeight, hDlg, NULL, hInst, NULL)));
static vector<std::shared_ptr<HWND>> hBut;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question