Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Make a toolbar without borders and titlebar
Message
From
31/07/2007 09:27:23
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01244794
Message ID:
01244843
Views:
32
>1) Can't you use the On Screen Keyboard from Microsoft. Just execute OSK.EXE.

I can't control that application. I can just run and kill it...

>2) In your base class you could store which control had focus. Then in the keyboard form set the focus back to the actual control. In addition you might have to store the current position in the text box.

but lostfocus will run... that's the problem... And like you said I have to find current position in the textbox. that's another problem.



Probably third one will my solution if you give me setwindowlog's syntax... :)

>3) You might have some success if you hook into the Paint method or the WM_PAINT message with BINDEVENT() and use GDI+ to overwrite the border and title bar. You can use the following code to remove the border that is drawn by the OS:
>
>Declare Long GetWindowLong in Win32API Long, Long
>GWL_STYLE = -16
>WS_BORDER = 0x00800000
>WS_THICKFRAME = 0x00040000
>lnStyle = GetWindowLong( ox.HWnd, GWL_STYLE )
>SetWindowLong(  ox.HWnd, GWL_STYLE, lnStyle-Bitand(lnStyle,WS_BORDER+WS_THICKFRAME) )
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform