Started removing onWM_HSCROLL from uiWindowsMakeControlsParams.

This commit is contained in:
Pietro Gagliardi 2015-05-21 12:43:40 -04:00
parent 50c7adf597
commit cbdaa780ff
9 changed files with 0 additions and 51 deletions

View File

@ -19,11 +19,6 @@ static BOOL onWM_COMMAND(uiControl *c, WORD code, LRESULT *lResult)
return TRUE;
}
static BOOL onWM_HSCROLL(uiControl *c, WORD code, LRESULT *lResult)
{
return FALSE;
}
static void onDestroy(void *data)
{
struct button *b = (struct button *) data;
@ -96,7 +91,6 @@ uiButton *uiNewButton(const char *text)
p.hInstance = hInstance;
p.lpParam = NULL;
p.useStandardControlFont = TRUE;
p.onWM_HSCROLL = onWM_HSCROLL;
p.onDestroy = onDestroy;
p.onDestroyData = b;
uiWindowsMakeControl(uiControl(b), &p);

View File

@ -27,11 +27,6 @@ static BOOL onWM_COMMAND(uiControl *cc, WORD code, LRESULT *lResult)
return TRUE;
}
static BOOL onWM_HSCROLL(uiControl *c, WORD code, LRESULT *lResult)
{
return FALSE;
}
static void onDestroy(void *data)
{
struct checkbox *c = (struct checkbox *) data;
@ -111,7 +106,6 @@ uiCheckbox *uiNewCheckbox(const char *text)
p.hInstance = hInstance;
p.lpParam = NULL;
p.useStandardControlFont = TRUE;
p.onWM_HSCROLL = onWM_HSCROLL;
p.onDestroy = onDestroy;
p.onDestroyData = c;
uiWindowsMakeControl(uiControl(c), &p);

View File

@ -6,11 +6,6 @@ struct combobox {
HWND hwnd;
};
static BOOL onWM_HSCROLL(uiControl *c, WORD code, LRESULT *lResult)
{
return FALSE;
}
static void onDestroy(void *data)
{
struct combobox *c = (struct combobox *) data;
@ -58,7 +53,6 @@ uiCombobox *uiNewCombobox(void)
p.hInstance = hInstance;
p.lpParam = NULL;
p.useStandardControlFont = TRUE;
p.onWM_HSCROLL = onWM_HSCROLL;
p.onDestroy = onDestroy;
p.onDestroyData = c;
uiWindowsMakeControl(uiControl(c), &p);

View File

@ -58,11 +58,6 @@ void uninitContainer(void)
logLastError("error unregistering container window class in uninitContainer()");
}
static BOOL onWM_HSCROLL(uiControl *c, WORD code, LRESULT *lResult)
{
return FALSE;
}
static void onDestroy(void *data)
{
// do nothing
@ -79,7 +74,6 @@ void uiMakeContainer(uiControl *c)
p.hInstance = hInstance;
p.lpParam = NULL;
p.useStandardControlFont = TRUE;
p.onWM_HSCROLL = onWM_HSCROLL;
p.onDestroy = onDestroy;
p.onDestroyData = NULL;
uiWindowsMakeControl(c, &p);

View File

@ -13,7 +13,6 @@ void osSingleDestroy(void *internal)
struct singleHWND *s = (struct singleHWND *) internal;
(*(s->onDestroy))(s->onDestroyData);
uiWindowsUnregisterWM_HSCROLLHandler(s->hwnd);
if (DestroyWindow(s->hwnd) == 0)
logLastError("error destroying control in singleDestroy()");
uiFree(s);
@ -118,8 +117,6 @@ void uiWindowsMakeControl(uiControl *c, uiWindowsMakeControlParams *p)
if (s->hwnd == NULL)
logLastError("error creating control in uiWindowsMakeControl()");
uiWindowsRegisterWM_HSCROLLHandler(s->hwnd, p->onWM_HSCROLL, uiControl(c));
s->onDestroy = p->onDestroy;
s->onDestroyData = p->onDestroyData;

View File

@ -22,11 +22,6 @@ static BOOL onWM_COMMAND(uiControl *c, WORD code, LRESULT *lResult)
return TRUE;
}
static BOOL onWM_HSCROLL(uiControl *c, WORD code, LRESULT *lResult)
{
return FALSE;
}
static void onDestroy(void *data)
{
struct entry *e = (struct entry *) data;
@ -107,7 +102,6 @@ uiEntry *uiNewEntry(void)
p.hInstance = hInstance;
p.lpParam = NULL;
p.useStandardControlFont = TRUE;
p.onWM_HSCROLL = onWM_HSCROLL;
p.onDestroy = onDestroy;
p.onDestroyData = e;
uiWindowsMakeControl(uiControl(e), &p);

View File

@ -6,11 +6,6 @@ struct group {
HWND hwnd;
};
static BOOL onWM_HSCROLL(uiControl *c, WORD code, LRESULT *lResult)
{
return FALSE;
}
static void onDestroy(void *data)
{
// TODO
@ -45,7 +40,6 @@ uiGroup *uiNewGroup(const char *text)
p.hInstance = hInstance;
p.lpParam = NULL;
p.useStandardControlFont = TRUE;
p.onWM_HSCROLL = onWM_HSCROLL;
p.onDestroy = onDestroy;
p.onDestroyData = g;
uiWindowsMakeControl(uiControl(g), &p);

View File

@ -6,11 +6,6 @@ struct label {
HWND hwnd;
};
static BOOL onWM_HSCROLL(uiControl *c, WORD code, LRESULT *lResult)
{
return FALSE;
}
static void onDestroy(void *data)
{
struct label *l = (struct label *) data;
@ -58,7 +53,6 @@ uiLabel *uiNewLabel(const char *text)
p.hInstance = hInstance;
p.lpParam = NULL;
p.useStandardControlFont = TRUE;
p.onWM_HSCROLL = onWM_HSCROLL;
p.onDestroy = onDestroy;
p.onDestroyData = l;
uiWindowsMakeControl(uiControl(l), &p);

View File

@ -6,11 +6,6 @@ struct progressbar {
HWND hwnd;
};
static BOOL onWM_HSCROLL(uiControl *c, WORD code, LRESULT *lResult)
{
return FALSE;
}
static void onDestroy(void *data)
{
struct progressbar *p = (struct progressbar *) data;
@ -53,7 +48,6 @@ uiProgressBar *uiNewProgressBar(void)
p.hInstance = hInstance;
p.lpParam = NULL;
p.useStandardControlFont = FALSE;
p.onWM_HSCROLL = onWM_HSCROLL;
p.onDestroy = onDestroy;
p.onDestroyData = pbar;
uiWindowsMakeControl(uiControl(pbar), &p);