I think the other problem with the tiny framework is the HWND/Window that is created is sub-classed off the "Edit" control. When the Window gets minimised or changes size in another way the edit control class doesn't know what to do and it gets screwed up. You should create a new class for all your application's windows, like this:
Dim wc as WNDCLASS
Dim classname as String
classname="COCKSHAVE"
wc.style = CS_HREDRAW | CS_VREDRAW | CS_OWNDC
wc.lpfnWndProc = cast(WNDPROC, DefWindowProc)
wc.cbClsExtra = 0
wc.cbWndExtra = 0
wc.hInstance = GetModuleHandle(NULL)
wc.hIcon = 0
wc.hCursor = LoadCursor( NULL, IDC_ARROW )
wc.hbrBackground = 0
wc.lpszMenuName = NULL
wc.lpszClassName = classname
RegisterClass(@wc)
dim as integer style = WS_OVERLAPPED Or WS_SYSMENU Or WS_CAPTION
dim as integer exstyle = WS_EX_APPWINDOW
gameWindow = CreateWindowEx(
0,
classname, // class
"Shockwave's Demo",
style,
CW_USEDEFAULT,CW_USEDEFAULT, // init. x,y pos
SCREEN_WIDTH,SCREEN_HEIGHT,
NULL, // parent window
NULL, // menu handle
wc.hInstance, // program handle
NULL // create parms
)
Forgive me, it was in C and I've tried to do the port to FB without testing it...
At the moment the tiny code has 'classname' set to "EDIT" which is a built-in class.
At some point you should create your own WindowProc to go where DefWindowProc goes so you can handle messages Windows sends you - like paint messages, keyboard messages, mouse move etc.
Jim