flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
siddhartha
Maybe you can use GetDlgItem:
HWND GetDlgItem( HWND hDlg, int nIDDlgItem ); /siddhartha |
|||
![]() |
|
holdlang
ty! it woks
![]() Now i only need to use tab control somehow... any idea? |
|||
![]() |
|
siddhartha
I can't just tell you what's wrong, but have you made separate flat bordered dialogs for the different pages you use in your rc? You should after that dynamically link them to the tab control like this:
LOCAL ts:TCITEM ; initialize the tab control item structure here you should fill in the structure invoke SendMessage,hTab,TCM_INSERTITEM,0,addr ts ; after that insert the tab invoke CreateDialogParam,hInstance,IDD_TABOPT1,hTab,addr TabOpt1Proc,0 ; and initialize it Good luck! /siddhartha |
|||
![]() |
|
holdlang
uhhh... i'm realy new with this and not everything is clear to me... Can you send a little example with tab control?
It will help me a lot. I'm writeing an IRC client and i like to make the canels to a mirc like style. I think it's with tab control. |
|||
![]() |
|
siddhartha
Try this:
http://board.win32asmcommunity.net/showthread.php?s=&threadid=18862&highlight=tab+control If you don't get it then post a reply and I'll do an example for you. /siddhartha |
|||
![]() |
|
holdlang
Firts thanx for the help:)
I try to understand and use this example but i have a bug... Code: invoke GetDlgItem, [hwnddlg], TMP_TAB mov [hTabControl], eax MOV [TCI.iImage],0 MOV [TCI.lParam],0 mov [TCI.mask], TCIF_TEXT mov [TCI.pszText],"Tab1" MOV [TCI.cchTextMax],14 invoke SendMessage, [hTabControl], TCM_INSERTITEM, 0, TCI invoke CreateDialogParam, [hwnddlg], 103, [hTabControl], ChildDlgProc, NULL on Code: invoke SendMessage, [hTabControl], TCM_INSERTITEM, 0, TCI Any idea? Ps: nevermind. found it ![]() TCI.pszText is a pointer... |
|||
![]() |
|
holdlang
ok. Question again ^^""
Code: .wminitdlg_option: invoke GetDlgItem, [hwnddlg], TMP_TAB mov [hTabControl], eax MOV [TCI.iImage],-1 MOV [TCI.lParam],0 mov [TCI.lpReserved1],0 mov [TCI.lpReserved2],0 mov [TCI.mask], TCIF_TEXT mov [TCI.pszText],_ping mov [TCI.cchTextMax],16 invoke SendMessage, [hTabControl], TCM_INSERTITEM, 0, TCI mov [TCI.mask], TCIF_TEXT mov [TCI.pszText],nick invoke SendMessage, [hTabControl], TCM_INSERTITEM, 1, TCI invoke CreateDialogParam, [hwnddlg], TMP_FRAME1, [hTabControl], ChildDlgProc,0 mov [hCurrentDialog], eax invoke ShowWindow, eax, SW_SHOW sooo. i can make a tab control! Ty for it ![]() But i can't show my dialog on the tab. I'm useing the visual studio to make dialogs. I sett TPM_FRAME1 (the dialog what i wan't to show) to a child process, i turn off title bar and the tool windows. But it not show at all this way. Any idea? |
|||
![]() |
|
siddhartha
Can you please post the source code if there is no problem for you. It's hard to work only with imagination
![]() /siddhartha |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.