flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
pelaillo
There is no internal FASMW internal compiler.
Fasm is able to load a compiled .res file and include it in the final exe. The compiling of resources from the source file is fully provided through macros. (resource.inc) To change/extend the way it works, you can edit those macros. The best documentation is the examples you find here on board. |
|||
![]() |
|
veach1
Examples doesn`t explain what happens and how those parts works. The biggest resource example is located in the FASMW.ASM, but what is what there?
|
|||
![]() |
|
pelaillo
Have you looked at resource.inc file?
(Located in include/macro directory) |
|||
![]() |
|
veach1
Yes, but found them too complicated to dig in.
![]() |
|||
![]() |
|
veach1
ppl please, anybody, help me in creation and handling TABCONTROL.
|
|||
![]() |
|
pelaillo
Tabcontrol is a window that can be created by calling CreateWindow and giving the class name TABCONTROL.
Giving that this window class is defined on comctl32.dll, you will need to initialize it by calling InitCommonControlsEx at the beginning of the code. Resource templates does the same thing only that this is performed by Windows directly. Code: dialog tabbed_dialog,'Compile',64,64,192,242,WS_CAPTION+WS_POPUP+WS_SYSMENU+DS_MODALFRAME dialogitem 'SysTabControl32','',ID_MY_TAB,8,6,176,212,WS_VISIBLE dialogitem 'BUTTON','C&ancel',IDCANCEL,75,24,42,214,WS_VISIBLE+WS_TABSTOP+BS_PUSHBUTTON enddialog Former code will be translated into the binary resource template format used by Windows. The translation is performed by the dialog - dialogitem - enddialog macros. You will need then to insert tabs by sending messages to the created window. Fill a TC_ITEM structure and then send it using a TCM_INSERTITEM (to see it working, refer to fasmw source code in fmnew and fmopen) |
|||
![]() |
|
veach1
Thank you! That will help!
|
|||
![]() |
|
pelaillo
This is an example to show:
-> How to create a simple tab control without resources -> How to use exclusively local variables and labels
|
|||||||||||
![]() |
|
veach1
you are very kind person, thank you once again!
|
|||
![]() |
|
veach1
Err... another question.
How to add dialogs and controls into each tab? I`m trying to understand but nothing comes out, I just don`t get it. ![]() In the fasmw.asm it is done by CreateWindowEx, but how? |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.