
Extremely Active Member
     
Group: Moderators
Posts: 874
Member No.: 5019
Joined: 13-May 07

|
Hi
I have a toolbar and i need to switch the Dialog like Tab control
The Dialog Create i in WM_initdialog
| CODE | invoke CreateDialogParam, hInstance, 2000, hWnd, addr Tab1Proc, 0 mov hTabDlg,eax;for selection invoke ShowWindow,eax,SW_SHOW invoke CreateDialogParam,hInstance,3000,hWnd,Tab2Proc,0 ;mov hDialog_Tab_2,eax mov [hTabDlg+4],eax;for selection |
Now want i a function to select this dialogs
| CODE | .elseif uMsg==WM_NOTIFY ;---Tab selection--- mov ebx,lParam .if [ebx].NMHDR.code==NM_CLICK invoke SendMessage, hToolbar, TB_GETBUTTON, 0, addr tb mov eax,tb.idCommand .if eax!=SelTab push eax mov eax,SelTab invoke ShowWindow,[hTabDlg+eax*4],SW_HIDE pop eax mov SelTab,eax invoke ShowWindow,[hTabDlg+eax*4],SW_SHOW mov eax,SelTab .endif .endif |
Have your an idea?
|