flat assembler
Message board for the users of flat assembler.
Index
> Windows > dynamic dialog |
Author |
|
chris 24 Mar 2006, 15:20
All controls/dialogboxes are ultimately created by using CreateWindow(Ex), you can look it up in MSDN.
|
|||
24 Mar 2006, 15:20 |
|
Kicer 25 Mar 2006, 11:20
Thx i got it. But now i have another question.
How to set the same font in my dynamic button as in static one? (it's much bigger, and i couldn't find any info or example which could resolve this problem). |
|||
25 Mar 2006, 11:20 |
|
Vasilev Vjacheslav 25 Mar 2006, 14:19
first you must create font with CreateFont, then use SendMessage with WM_SETFONT to set created font to control, and delete font handle before program termination with DeleteObject
|
|||
25 Mar 2006, 14:19 |
|
Kicer 26 Mar 2006, 12:29
Thx, works So now I have last question: that attributes has the standard button font ?
|
|||
26 Mar 2006, 12:29 |
|
Vasilev Vjacheslav 26 Mar 2006, 15:26
sorry, which attributes?
|
|||
26 Mar 2006, 15:26 |
|
SDragon 27 Mar 2006, 10:54
GetStockObject(SYSTEM_FONT). It returns HFONT.
|
|||
27 Mar 2006, 10:54 |
|
Kicer 28 Mar 2006, 13:20
to Vasilev Vjacheslav: i meant what parameters should i give to CreateFont procedure to get font the same as is used with standard buttons created with static way.
|
|||
28 Mar 2006, 13:20 |
|
Vasilev Vjacheslav 28 Mar 2006, 14:43
why just don't look to msdn? something like this
Code: szScrollFont db "Tahoma",0 invoke CreateFont,12,NULL,NULL,NULL,FW_NORMAL,NULL,NULL,NULL,DEFAULT_CHARSET,OUT_DEFAULT_PRECIS,\ CLIP_DEFAULT_PRECIS,DEFAULT_QUALITY,DEFAULT_PITCH,szScrollFont |
|||
28 Mar 2006, 14:43 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.