The MASM Forum

General => The Campus => Topic started by: Don57 on October 20, 2012, 03:17:12 AM

Title: PBS_SMOOTH how to set ?
Post by: Don57 on October 20, 2012, 03:17:12 AM
Reading Microsofts database about progress bars but still can't figure out where to set PBS_SMOOTH

http://msdn.microsoft.com/en-us/library/windows/desktop/bb760820(v=vs.85).aspx
Title: Re: PBS_SMOOTH how to set ?
Post by: Tedd on October 20, 2012, 03:34:32 AM
??S_??????? constants are usually styles, which you set as a parameter when you create the window/control - in CreateWindow dwStyle, or as the style for a control on a dialog.
Title: Re: PBS_SMOOTH how to set ?
Post by: dedndave on October 20, 2012, 04:04:36 AM
        INVOKE  CreateWindowEx,NULL,ADDR szProgressClass,NULL,
                WS_CHILD or WS_VISIBLE or PBS_SMOOTH,
                25,170,Status_width,Status_height,hWnd,IDC_PROGRESS,hInstance,NULL



Tomato.
Title: Re: PBS_SMOOTH how to set ?
Post by: MichaelW on October 20, 2012, 04:05:48 AM
There is an in-memory dialog example in \masm32\examples\dialogs_later\progress.
Title: Re: PBS_SMOOTH how to set ?
Post by: Don57 on October 20, 2012, 04:08:59 AM
I got it

      invoke CreateWindowEx,NULL,ADDR sz_ProgressClass,NULL, WS_CHILD or WS_VISIBLE or PBS_SMOOTH,25,\
                                      70,PROGRESS_WIDTH,PROGRESS_HEIGHT,hGlobal_Wnd,IDC_PROGRESS,hInstance,NULL


it was the PBS that confused me