flat assembler
Message board for the users of flat assembler.
Index
> Windows > [solved] How do I show (or enable) a hidden progress bar |
Author |
|
typedef 02 Aug 2013, 07:16
Use this.
Code: ShowWindow, hwnd, SW_HIDE http://msdn.microsoft.com/en-us/library/windows/desktop/ms633548(v=vs.85).aspx |
|||
02 Aug 2013, 07:16 |
|
machinecoder 02 Aug 2013, 10:57
You have misunderstood my question, I dont want to "show a window", I want to enable/show a progress bar, on a dialog window.
besides, how would "SW_HIDE" show a dialog element ???? I want to show a dialog item and this will involve the function SendDlgItemMessage I just need to know the correct parameters. Its a shame Microsoft are so piss-poor at documenting there API |
|||
02 Aug 2013, 10:57 |
|
typedef 02 Aug 2013, 11:30
machinecoder wrote:
Here http://www.winprog.org/tutorial/ and then here http://msdn.microsoft.com/en-us/library/windows/desktop/ff485993(v=vs.85).aspx machinecoder wrote: besides, how would "SW_HIDE" show a dialog element ???? Because machinecoder wrote:
|
|||
02 Aug 2013, 11:30 |
|
sinsi 02 Aug 2013, 12:00
>Its a shame Microsoft are so piss-poor at documenting there API
Look up PBM_SETSTATE message: Quote: wParam Notice WS_VISIBLE is not an option. Try GetDlgItem then ShowWindow |
|||
02 Aug 2013, 12:00 |
|
machinecoder 02 Aug 2013, 12:00
typedef wrote:
NO I have already got the progress bar hidden on creation, dialogitem "msctls_progress32","Progress1",ID_PROGRESS,120,145,174,9,\ WS_DISABLED,0 User hits button then I want to make the progressbar visible. I have already tried, invoke SendDlgItemMessage,[hwnd],ID_PROGRESS,PBM_SETSTATE,WS_VISIBLE,0 but its doesnt work, I have set the wrong parameters. invoke GetDlgItem,[hwnd],ID_PROGRESS invoke ShowWindow,eax,1 WORKS !!! COOL BANANA'S |
|||
02 Aug 2013, 12:00 |
|
AsmGuru62 02 Aug 2013, 22:18
All dialog elements are HWNDs, so all HWND can do (using API) -- dialog elements can do too.
|
|||
02 Aug 2013, 22:18 |
|
revolution 02 Aug 2013, 22:29
Yes, there is nothing special about dialog elements. They are just standard windows that can be manipulated using standard window functions. A dialog box is just a convenient container to hold all the various buttons, labels and other windows together in one place.
|
|||
02 Aug 2013, 22:29 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.