jk7800
Joined: 06 Jan 2008 Posts: 40 Location: Gdi+ v1.1
|
Posted: Fri Aug 01, 2008 2:31 pm Post subject: DrawCaption problem. |
|
|
Hi.
Lately, I was experimenting a bit with the GDI functions... But I've got stuck on the DrawCaption command. According to the msdn database, when I execute the command with the DC_SMALLCAP parameter, it should draw a normal caption bar. But it draws nothing instead! How can I make it to draw a normal caption (not gradient one)?
I'm posting my script:
| Code: | VarSetCapacity(Rect, 16)
NumPut(0, Rect, 0, true)
NumPut(0, Rect, 4, true)
NumPut(600, Rect, 8, true)
NumPut(32, Rect, 12, true)
DllCall("user32.dll\DrawCaption", UInt, h:=WinExist("A"), UInt, hdc:=DllCall("GetDC", UInt, WinExist("A")), UInt, &Rect, UInt, DC_SMALLCAP:=0x0002) |
_________________ My first app: Note
(Please, vote if you like my apps!)
None of my apps took me more than a day to create... After this time I get bored with it (maybe except the note one)... |
|
engunneer
Joined: 30 Aug 2005 Posts: 6847 Location: Pacific Northwest, US
|
Posted: Sat Aug 02, 2008 5:48 am Post subject: |
|
|
I haven't checked, but is the functionality you want already in the GDI+ wrapper scripts that have been posted? They might show you what you are missing. _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|