Click to See Complete Forum and Search --> : [RESOLVED] centering text in static label


BytePtr
June 15th, 2005, 10:52 AM
Im writing CD player in pure WinApi with Visual C++ 6 and created also label for time. I need that current CD time is fully centered in static label but its now at top center, i mean i can put in to center at top but not to center of static label. Look screenshot (http://www.geocities.com/crackalert/bug.PNG).
What message should i send to static label or what style command i must add to make it fully centered on static label so it will be look like this ( move from top center to 'center center'): must be (http://www.geocities.com/crackalert/willbe.PNG)
AjaLaud = CreateWindowEx(NULL, "STATIC", "00:00", WS_CHILD|WS_VISIBLE|SS_SUNKEN|SS_CENTER, etc...
Thx in advance.

BytePtr
June 15th, 2005, 11:05 AM
Solved now:
AjaLaud = CreateWindowEx(NULL, "STATIC", "00:00", WS_CHILD|WS_VISIBLE|SS_SUNKEN|SS_CENTER|SS_CENTERIMAGE, etc....

thanx for reading.