WinAsm Studio, The Assembly IDE - Free Downloads, Source Code
Sponsors
Articles
Programming Quick Start
32-bit Assembler is Easy
Porting Iczelion tutorials
What is FASM
Hard Drive Recovery
Wiring your own LAN
Personal menu
Welcome Guest
User:
Pass:
Register!
Resend Validation Email
 
Forum
 

Toolbar Dialog selection, I have a toolbar and i need to switch the Dialog like Tab control.

ragdog
Quote Post


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?

PMUsers Website
Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll

 

Sponsors
Computer Science

Internet
C/C++
Hardware & PC maintenance

HiEditor

General Discussions
Suggestions/Bug Reports
WinAsm Studio

General Discussions
Suggestions/Bug Reports
WinAsm Studio FAQ
Multilingual User Interface
Add-Ins
Assembly Programming

Main
Newbies
Projects
Custom Controls
Snippets
Announcements & Rules

Announcements

General

Online Degrees - Distance Learning
The Heap
Russian
Google