void onCommand(WPARAM wparam, LPARAM lparam) { wchar_t str[100] = {0}; ComboBox_GetText(GetDlgItem(mainWnd, IDC_COMBO1), str, 100); avPrint << str << av::endl; switch(LOWORD(wparam)) { case IDCANCEL: EndDialog(mainWnd, 0); break; } }
case WM_LBUTTONDOWN: onCommand(0, 0); return true; // prints actual value case WM_COMMAND: onCommand(wparam, lparam); return true; // prints previous value
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)