MASM32 Downloads
Method TabIptor.OnNotify, uses ebx, wParam:WPARAM, lParam:LPARAM local TCI:TC_ITEM SetObject esi mov ebx, lParam .if [ebx].NMHDR.code == TCN_SELCHANGING ;Hide current window mov TCI.imask, TCIF_PARAM invoke SendMessage, [ebx].NMHDR.hwndFrom, TCM_GETCURSEL, 0, 0 lea ecx, TCI invoke SendMessage, [ebx].NMHDR.hwndFrom, TCM_GETITEM, eax, ecx invoke ShowWindow, TCI.lParam, SW_HIDE xor eax, eax ;Allow the selection to change eax = FALSE .elseif [ebx].NMHDR.code == TCN_SELCHANGE ;Show new window mov TCI.imask, TCIF_PARAM invoke SendMessage, [ebx].NMHDR.hwndFrom, TCM_GETCURSEL, 0, 0 lea ecx, TCI invoke SendMessage, [ebx].NMHDR.hwndFrom, TCM_GETITEM, eax, ecx invoke ShowWindow, TCI.lParam, SW_SHOWDEFAULT .endif mov eax, 0 <-------------- Just this line -------------------< MethodEnd