msctls_progress32
-
Hallo,
Ich habe folgende Frage.
Für was ist folgender Code (ist aus einer Resource):
CONTROL "Status", 116, "msctls_progress32", 0x0 | WS_CLIPSIBLINGS, 40, 19, 70, 10
Cu
Sandra
-
Das erstellt Dir einen Fortschrittsbalken (progress bar) an der durch die letzten vier Zahlen angegebenen Position mit der ID=116 und mit dem Stil WS_CLIPSIBLINGS.
WS_CLIPSIBLINGS (MSDN): Clips child windows relative to each other; that is, when a particular child window receives a paint message, the WS_CLIPSIBLINGS style clips all other overlapped child windows out of the region of the child window to be updated. (If WS_CLIPSIBLINGS is not given and child windows overlap, when you draw within the client area of a child window, it is possible to draw within the client area of a neighboring child window.) For use with the WS_CHILD style only
-
Und wie startet man den?
-
-
Aus dem Beispiel werd ich net schlau
!
Wie muss man das für die Resource machen??
-
Mit SendDlgItemMessage schickst du einfach die PBM_xxx Nachrichten an die Progress-Bar.
z.B.
SendDlgItemMessage(hDialog, 116, PBM_STEPIT, 0, 0);
-
Und was muss ich dahin schicken, dass ein blaues teil erscheint?
-
PBM_SETRANGE und dann jeweils PBM_SETPOS
oder
PBM_SETSTEP und dann jeweils PBM_STEPIT
PS: Das sollte aber doch eigentlich aus der Seite (Link von Trolli) klar werden
-
Geht nicht.
-
Was geht nicht
Wie sieht denn dein Code aus?
InitCommonControls bzw. besser InitCommonControlsEx am Anfang aufgerufen?!
[ Dieser Beitrag wurde am 27.02.2003 um 14:17 Uhr von flenders editiert. ]
-
da braucht man kein InitCommonControls weil sie sowieso den dialogmanager beutzt
CONTROL "Status", 116, "msctls_progress32", 0x0 | WS_CLIPSIBLINGS, 40, 19, 70, 10
sonst wär das net in einer *.res datei
-
Ich glaube, Sandra M will uns vera*schen.
-
@Wolfman: InitCommonControls wird trotzdem gebraucht.