5 #include "TwrCombobox.h"
24 static INT_PTR CALLBACK
modalDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
25 static INT_PTR CALLBACK
modelessDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
26 INT_PTR CALLBACK
dialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
27 void setParent(HWND parent)
29 parentWindow = parent;
43 #define DDX_Text(toObj, ctl, str) ¥
45 GetDlgItemText(hWnd,ctl,ddx_buf,512); ¥
48 SetDlgItemText(hWnd,ctl,str.c_str()); ¥
52 #define DDX_Check(toObj, ctl, stat) ¥
54 stat = SendMessage(::GetDlgItem(hWnd,ctl),BM_GETCHECK,0,0); ¥
56 SendMessage(::GetDlgItem(hWnd,ctl),BM_SETCHECK,(WPARAM)stat,0); ¥
60 #define DDX_CBIndex(toObj, ctl, index) ¥
62 index = SendMessage(::GetDlgItem(hWnd,ctl),CB_GETCURSEL,0,0); ¥
64 SendMessage(::GetDlgItem(hWnd,ctl),CB_SETCURSEL,(WPARAM)index,0); ¥