I'm trying to open a Dialog and send a parameter (ID for SQL query) with it, but I just don't know how to read it.
Calling dialog:
Here's how i'm trying to read parameter:Code:DialogBoxParam(GetModuleHandle(NULL), MAKEINTRESOURCE(IDD_SKUPINE_PRIKAZ), hwnd, GroupsShowDlgProc, (LPARAM)tmp_i);
Any ideas?Code:BOOL CALLBACK GroupsShowDlgProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { switch(message) { case WM_INITDIALOG: MessageBox(hwnd, (const char*)HIWORD(lParam), "Test", MB_OK);