Implemented tab changing on the Windows backend's new tab.c.

This commit is contained in:
Pietro Gagliardi 2015-05-18 12:10:54 -04:00
parent cd39bef019
commit 2ea6607594
1 changed files with 9 additions and 1 deletions

View File

@ -45,7 +45,15 @@ static BOOL onWM_COMMAND(uiControl *c, WORD code, LRESULT *lResult)
static BOOL onWM_NOTIFY(uiControl *c, NMHDR *nm, LRESULT *lResult) static BOOL onWM_NOTIFY(uiControl *c, NMHDR *nm, LRESULT *lResult)
{ {
struct tab *t = (struct tab *) c;
if (nm->code != TCN_SELCHANGING && nm->code != TCN_SELCHANGE)
return FALSE; return FALSE;
showHidePage(t, curpage(t), nm->code == TCN_SELCHANGING);
*lResult = 0;
if (nm->code == TCN_SELCHANGING)
*lResult = FALSE;
return TRUE;
} }
static void onDestroy(void *data) static void onDestroy(void *data)