flat assembler
Message board for the users of flat assembler.

Index > Windows > anybody have a "DIALOGEX" macro for fasm?

Author
Thread Post new topic Reply to topic
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt
I was wondering if anyone new how make a dialogex macro similar to the dialog macro. I mainly want it so you can add a bold typface to the dialog. All my attempts at making one, and modifying the original have failed, here is the information I found in the SDK:

Code:
nameID DIALOGEX x, y, width, height [ , helpID]] [[ optional-statements]]  { control-statements }

nameID  Unique name or a unique 16-bit unsigned integer value that identifies the dialog box. 
x  Location on the screen of the left side of the dialog box, in dialog units. 
y  Location on the screen of the top of the dialog box, in dialog units. 
width  Width of the dialog box, in dialog units. 
height  Height of the dialog box, in dialog units. 
helpID  Numeric expression indicating the ID used to identify the dialog
box during WM_HELP processing. 
optional-statements Options for the dialog box. This can be zero or more
of the following statements.

--------------------------------------------------------------------------
FONT pointsize, typeface, weight, italic, charset 

Point size and typeface for the font. For weight, use the FW_* values
defined in WINGDI.H. For italic, specify TRUE to use an italic font, FALSE
otherwise. For charset, use the value defined in the charset member of
the LOGFONT structure. To get the definitive font for a dialog box, an
application should specify charset along with other font properties.      
Post 28 Jul 2006, 00:01
View user's profile Send private message Reply with quote
asmgges



Joined: 17 Jun 2003
Posts: 86
Location: France
asmgges
Hi ! madmatt Very Happy

dialog box made "at the hand"
with 2 fonts

Friendly..AsmGges


Description:
Download
Filename: ex16button3.zip
Filesize: 6.6 KB
Downloaded: 52 Time(s)

Post 29 Jul 2006, 15:43
View user's profile Send private message Visit poster's website Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt
Hi asmgges Cool ,
Uhh, what do you mean "at the hand"? Am I missing a joke here somewhere? Laughing Anyways, I like the nice little snake game you made, when are ya gonna join john carmack and make doom 4 in 100% assembly (using FasmW of course!)? Shocked Very Happy

[Edit] Just found the download file, AFTER I replied, So, I'll get back to you soon, Thank you much!!
Post 29 Jul 2006, 23:59
View user's profile Send private message Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt
Hi asmgges,
Tried your example, works good. But, I need the labels and titles also to work with the font. I'd like to have the macro so that all of dialog is affected, not just button's and text boxes. I wonder where tomasz got his info from? The SDK doesn't give me enough info.
Post 30 Jul 2006, 08:31
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.