Hi,
>I need toolbar. Because I made a virtual keyboard. With toolbar control lostfocus method doesn't run.
A couple of options:
1) Can't you use the On Screen Keyboard from Microsoft. Just execute OSK.EXE.
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.
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) )
--
Christof