flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
siddhartha 14 Aug 2004, 12:09
Maybe you can use GetDlgItem:
HWND GetDlgItem( HWND hDlg, int nIDDlgItem ); /siddhartha |
|||
![]() |
|
holdlang 14 Aug 2004, 12:31
ty! it woks
![]() Now i only need to use tab control somehow... any idea? |
|||
![]() |
|
siddhartha 14 Aug 2004, 14:32
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 14 Aug 2004, 22:23
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 15 Aug 2004, 02:05
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 15 Aug 2004, 10:33
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 15 Aug 2004, 11:57
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 16 Aug 2004, 01:47
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-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.