Oh right, also changed this to me in control implementations. Forgot that. NOW we can fix up the makefiles and test.
This commit is contained in:
parent
0200af0301
commit
cef1f90634
|
@ -24,7 +24,7 @@ static void onDestroy(uiBox *);
|
||||||
uiWindowsDefineControlWithOnDestroy(
|
uiWindowsDefineControlWithOnDestroy(
|
||||||
uiBox, // type name
|
uiBox, // type name
|
||||||
uiBoxType, // type function
|
uiBoxType, // type function
|
||||||
onDestroy(this); // on destroy
|
onDestroy(me); // on destroy
|
||||||
)
|
)
|
||||||
|
|
||||||
static void onDestroy(uiBox *b)
|
static void onDestroy(uiBox *b)
|
||||||
|
|
|
@ -11,7 +11,7 @@ struct uiButton {
|
||||||
uiWindowsDefineControlWithOnDestroy(
|
uiWindowsDefineControlWithOnDestroy(
|
||||||
uiButton, // type name
|
uiButton, // type name
|
||||||
uiButtonType, // type function
|
uiButtonType, // type function
|
||||||
uiWindowsUnregisterWM_COMMANDHandler(this->hwnd); // on destroy
|
uiWindowsUnregisterWM_COMMANDHandler(me->hwnd); // on destroy
|
||||||
)
|
)
|
||||||
|
|
||||||
static BOOL onWM_COMMAND(uiControl *c, HWND hwnd, WORD code, LRESULT *lResult)
|
static BOOL onWM_COMMAND(uiControl *c, HWND hwnd, WORD code, LRESULT *lResult)
|
||||||
|
|
|
@ -11,7 +11,7 @@ struct uiCheckbox {
|
||||||
uiWindowsDefineControlWithOnDestroy(
|
uiWindowsDefineControlWithOnDestroy(
|
||||||
uiCheckbox, // type name
|
uiCheckbox, // type name
|
||||||
uiCheckboxType, // type function
|
uiCheckboxType, // type function
|
||||||
uiWindowsUnregisterWM_COMMANDHandler(this->hwnd); // on destroy
|
uiWindowsUnregisterWM_COMMANDHandler(me->hwnd); // on destroy
|
||||||
)
|
)
|
||||||
|
|
||||||
static BOOL onWM_COMMAND(uiControl *cc, HWND hwnd, WORD code, LRESULT *lResult)
|
static BOOL onWM_COMMAND(uiControl *cc, HWND hwnd, WORD code, LRESULT *lResult)
|
||||||
|
|
|
@ -16,7 +16,7 @@ struct uiCombobox {
|
||||||
uiWindowsDefineControlWithOnDestroy(
|
uiWindowsDefineControlWithOnDestroy(
|
||||||
uiCombobox, // type name
|
uiCombobox, // type name
|
||||||
uiComboboxType, // type function
|
uiComboboxType, // type function
|
||||||
uiWindowsUnregisterWM_COMMANDHandler(this->hwnd); // on destroy
|
uiWindowsUnregisterWM_COMMANDHandler(me->hwnd); // on destroy
|
||||||
)
|
)
|
||||||
|
|
||||||
// note: NOT triggered on entering text
|
// note: NOT triggered on entering text
|
||||||
|
|
|
@ -9,7 +9,7 @@ struct uiDateTimePicker {
|
||||||
uiWindowsDefineControlWithOnDestroy(
|
uiWindowsDefineControlWithOnDestroy(
|
||||||
uiDateTimePicker, // type name
|
uiDateTimePicker, // type name
|
||||||
uiDateTimePickerType, // type function
|
uiDateTimePickerType, // type function
|
||||||
uiWindowsUnregisterReceiveWM_WININICHANGE(this->hwnd); // on destroy
|
uiWindowsUnregisterReceiveWM_WININICHANGE(me->hwnd); // on destroy
|
||||||
)
|
)
|
||||||
|
|
||||||
// utility functions
|
// utility functions
|
||||||
|
|
|
@ -12,7 +12,7 @@ struct uiEntry {
|
||||||
uiWindowsDefineControlWithOnDestroy(
|
uiWindowsDefineControlWithOnDestroy(
|
||||||
uiEntry, // type name
|
uiEntry, // type name
|
||||||
uiEntryType, // type function
|
uiEntryType, // type function
|
||||||
uiWindowsUnregisterWM_COMMANDHandler(this->hwnd); // on destroy
|
uiWindowsUnregisterWM_COMMANDHandler(me->hwnd); // on destroy
|
||||||
)
|
)
|
||||||
|
|
||||||
static BOOL onWM_COMMAND(uiControl *c, HWND hwnd, WORD code, LRESULT *lResult)
|
static BOOL onWM_COMMAND(uiControl *c, HWND hwnd, WORD code, LRESULT *lResult)
|
||||||
|
|
|
@ -15,7 +15,7 @@ static void onDestroy(uiFontButton *);
|
||||||
uiWindowsDefineControlWithOnDestroy(
|
uiWindowsDefineControlWithOnDestroy(
|
||||||
uiFontButton, // type name
|
uiFontButton, // type name
|
||||||
uiFontButtonType, // type function
|
uiFontButtonType, // type function
|
||||||
onDestroy(this); // on destroy
|
onDestroy(me); // on destroy
|
||||||
)
|
)
|
||||||
|
|
||||||
static void onDestroy(uiFontButton *b)
|
static void onDestroy(uiFontButton *b)
|
||||||
|
|
|
@ -13,7 +13,7 @@ static void onDestroy(uiGroup *);
|
||||||
uiWindowsDefineControlWithOnDestroy(
|
uiWindowsDefineControlWithOnDestroy(
|
||||||
uiGroup, // type name
|
uiGroup, // type name
|
||||||
uiGroupType, // type function
|
uiGroupType, // type function
|
||||||
onDestroy(this); // on destroy
|
onDestroy(me); // on destroy
|
||||||
)
|
)
|
||||||
|
|
||||||
static void onDestroy(uiGroup *g)
|
static void onDestroy(uiGroup *g)
|
||||||
|
|
|
@ -15,7 +15,7 @@ struct uiMultilineEntry {
|
||||||
uiWindowsDefineControlWithOnDestroy(
|
uiWindowsDefineControlWithOnDestroy(
|
||||||
uiMultilineEntry, // type name
|
uiMultilineEntry, // type name
|
||||||
uiMultilineEntryType, // type function
|
uiMultilineEntryType, // type function
|
||||||
uiWindowsUnregisterWM_COMMANDHandler(this->hwnd); // on destroy
|
uiWindowsUnregisterWM_COMMANDHandler(me->hwnd); // on destroy
|
||||||
)
|
)
|
||||||
|
|
||||||
static BOOL onWM_COMMAND(uiControl *c, HWND hwnd, WORD code, LRESULT *lResult)
|
static BOOL onWM_COMMAND(uiControl *c, HWND hwnd, WORD code, LRESULT *lResult)
|
||||||
|
|
|
@ -19,7 +19,7 @@ static void onDestroy(uiRadioButtons *);
|
||||||
uiWindowsDefineControlWithOnDestroy(
|
uiWindowsDefineControlWithOnDestroy(
|
||||||
uiRadioButtons, // type name
|
uiRadioButtons, // type name
|
||||||
uiRadioButtonsType, // type function
|
uiRadioButtonsType, // type function
|
||||||
onDestroy(this); // on destroy
|
onDestroy(me); // on destroy
|
||||||
)
|
)
|
||||||
|
|
||||||
static BOOL onWM_COMMAND(uiControl *c, HWND clicked, WORD code, LRESULT *lResult)
|
static BOOL onWM_COMMAND(uiControl *c, HWND clicked, WORD code, LRESULT *lResult)
|
||||||
|
|
|
@ -11,7 +11,7 @@ struct uiSlider {
|
||||||
uiWindowsDefineControlWithOnDestroy(
|
uiWindowsDefineControlWithOnDestroy(
|
||||||
uiSlider, // type name
|
uiSlider, // type name
|
||||||
uiSliderType, // type function
|
uiSliderType, // type function
|
||||||
uiWindowsUnregisterWM_HSCROLLHandler(this->hwnd); // on destroy
|
uiWindowsUnregisterWM_HSCROLLHandler(me->hwnd); // on destroy
|
||||||
)
|
)
|
||||||
|
|
||||||
static BOOL onWM_HSCROLL(uiControl *c, HWND hwnd, WORD code, LRESULT *lResult)
|
static BOOL onWM_HSCROLL(uiControl *c, HWND hwnd, WORD code, LRESULT *lResult)
|
||||||
|
|
|
@ -16,7 +16,7 @@ static void onDestroy(uiSpinbox *);
|
||||||
uiWindowsDefineControlWithOnDestroy(
|
uiWindowsDefineControlWithOnDestroy(
|
||||||
uiSpinbox, // type name
|
uiSpinbox, // type name
|
||||||
uiSpinboxType, // type function
|
uiSpinboxType, // type function
|
||||||
onDestroy(this); // on destroy
|
onDestroy(me); // on destroy
|
||||||
)
|
)
|
||||||
|
|
||||||
// utility functions
|
// utility functions
|
||||||
|
|
|
@ -18,7 +18,7 @@ static void onDestroy(uiTab *);
|
||||||
uiWindowsDefineControlWithOnDestroy(
|
uiWindowsDefineControlWithOnDestroy(
|
||||||
uiTab, // type name
|
uiTab, // type name
|
||||||
uiTabType, // type function
|
uiTabType, // type function
|
||||||
onDestroy(this); // on destroy
|
onDestroy(me); // on destroy
|
||||||
)
|
)
|
||||||
|
|
||||||
// utility functions
|
// utility functions
|
||||||
|
|
|
@ -20,7 +20,7 @@ static void onDestroy(uiWindow *);
|
||||||
uiWindowsDefineControlWithOnDestroy(
|
uiWindowsDefineControlWithOnDestroy(
|
||||||
uiWindow, // type name
|
uiWindow, // type name
|
||||||
uiWindowType, // type function
|
uiWindowType, // type function
|
||||||
onDestroy(this); // on destroy
|
onDestroy(me); // on destroy
|
||||||
)
|
)
|
||||||
|
|
||||||
static LRESULT CALLBACK windowWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
static LRESULT CALLBACK windowWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
|
|
Loading…
Reference in New Issue