flat assembler
Message board for the users of flat assembler.

Index > Windows > How to add ProgressBar?

Author
Thread Post new topic Reply to topic
n0p



Joined: 06 Jan 2004
Posts: 10
Location: Russia,Novosibirsk
n0p
I'm in trouble...
How can I add ProgressBar in my project? In MASM it was:
Code:
   CONTROL "IDC_PROGRESS", 2001, "msctls_progress32", PBS_SMOOTH | WS_CHILD | WS_VISIBLE, 2, 121, 230, 10    
, but it doesn't work in FASM... I wanna to rebuild my old project in FASM, but I don't know how to do ProgressBar... Please, help me...

P.S.: English isn't my native, so sorry for mistakes I can do...
Post 06 Jan 2004, 17:51
View user's profile Send private message ICQ Number Reply with quote
decard



Joined: 11 Sep 2003
Posts: 1092
Location: Poland
decard
FASM handles resources in a different way. You can do it in two ways:
1) use resource macroses (see FASM examples, especially dialog.asm)
2) create resource file using some resource editor, compile it to *.res file and create resource section from this file:
Code:
section '.res' resource from 'my_res_file.res' data readable    
Post 06 Jan 2004, 18:01
View user's profile Send private message Visit poster's website Reply with quote
eet_1024



Joined: 22 Jul 2003
Posts: 59
eet_1024
Here's how you would describe that control using the macros:
Code:
section '.rsrc' resource data readable

directory RT_DIALOG,dialogs

resource dialogs, 37, LANG_ENGLISH+SUBLANG_DEFAULT, MyDialogLabel

dialog MyDialogLabel,'My Dialog Box',216,140,332,218,WS_CAPTION or WS_POPUP or WS_SYSMENU or DS_MODALFRAME
   dialogitem "IDC_PROGRESS", "msctls_progress32", 2001, 2, 121, 230, 10, PBS_SMOOTH or WS_CHILD or WS_VISIBLE
enddialog    
Post 07 Jan 2004, 22:23
View user's profile Send private message Reply with quote
n0p



Joined: 06 Jan 2004
Posts: 10
Location: Russia,Novosibirsk
n0p
Thnx 2 All! That's all i want to find out!
Post 22 Jan 2004, 18:55
View user's profile Send private message ICQ Number 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.

Powered by rwasa.