29 #ifndef DIALOGHELPERS_H_
30 #define DIALOGHELPERS_H_
48 SendMessage (
mWindow, BM_SETCHECK, checked ? BST_CHECKED : BST_UNCHECKED, 0 );
53 EnableWindow (
mWindow, enable );
58 return SendMessage (
mWindow, BM_GETCHECK, 0, 0 ) == BST_CHECKED ?
true :
false;
63 SetWindowText (
mWindow, text );
69 GetWindowText (
mWindow, text, 4095 );
85 operator HWND(
void )
const {
return mWindow; }
97 ptr = (
unsigned char*)
this;
105 #define DIALOGITEM_BEGIN(name) \
106 class name : public rvDialogItemContainer \
110 name ( HWND hwnd ) { Cache ( hwnd ); } \
111 void Cache ( HWND parent ) \
113 rvDialogItemContainer::Cache ( parent, sizeof(*this)/sizeof(rvDialogItem) ); \
117 #define DIALOGITEM(id,name) \
118 class c##name : public rvDialogItem \
121 c##name(int localid=id) : rvDialogItem ( localid ) { } \
124 #define DIALOGITEM_END() \
128 #endif // DIALOGHELPERS_H_
GLuint GLuint GLsizei count
void SetText(const char *text)
void Cache(HWND parent, int count)
char * va(const char *fmt,...)