News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

How to show progress bar in status bar ?

Started by enevil, March 03, 2012, 11:56:20 AM

Previous topic - Next topic

enevil


How to show progress bar in status bar ?
                               think you.

hutch--

Use the status bar handle as the parent for a progress control.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

livinskull

And SB_GETRECT to get the dimensions ;)

Like this:
invoke CreateStatusWindow, WS_CHILD or WS_VISIBLE, NULL, hWnd, IDC_STATUS
mov hwndStatus, eax
invoke SendMessage, hwndStatus, SB_GETRECT, 0, addr r
mov ecx, r.bottom
sub ecx, r.top
mov edx, r.right
sub edx, r.left
invoke CreateWindowEx, NULL, addr szProgressClass, NULL, WS_CHILD or WS_VISIBLE, r.left, r.top, edx, ecx, hwndStatus,  0, hInstance, 0
mov hwndProgress, eax