Posted: Wed Feb 06, 2002 4:40 pm
Restored from previous forum. Originally posted by webmatze.
I played around with the Windows API and the result is this little pice of code.
But there are still some bugs. The first Child Window is not painted properly.
Does anybody know what the fault is?
webmatze
Registered Purebasic User.
Using Windows XP on an AMD System...
I played around with the Windows API and the result is this little pice of code.
But there are still some bugs. The first Child Window is not painted properly.
Does anybody know what the fault is?
Code: Select all
#RICHEDIT = #WS_CHILD | #WS_VISIBLE |#WS_VSCROLL |#ES_MULTILINE |#ES_AUTOVSCROLL
#WINDOW_PARAMETERS = #PB_Window_SystemMenu
#WindowHeight = 400
#WindowWidth = 500
MDIFrame=OpenWindow(0,100,100, #WindowWidth, #WindowHeight, #WINDOW_PARAMETERS ,"MDI Frame Window")
If MDIFrame
module = LoadLibrary_("RICHED32.DLL")
cs.CLIENTCREATESTRUCT
MDIClient = CreateWindowEx_(#WS_EX_CLIENTEDGE, "MDIClient", "MDI Client Window", #RICHEDIT, 1, 4, #WindowWidth-10, #WindowHeight-50, MDIFrame, 0, module, cs)
MDIChild1 = CreateWindowEx_(#WS_EX_MDICHILD , "RichEdit", "MDI Child 1 Window", #WINDOW_PARAMETERS, 10, 10, 200, 300, MDIClient, 0, module, cs)
MDIChild2 = CreateWindowEx_(#WS_EX_MDICHILD , "RichEdit", "MDI Child 2 Window", #WINDOW_PARAMETERS, 250, 10, 200, 300, MDIClient, 0, module, cs)
EndIf
Repeat
EventID = WaitWindowEvent()
If EventID = #WM_PAINT
UpdateWindow_(MDIChild1)
EndIf
Until EventID=#PB_EventCloseWindow
End
Registered Purebasic User.
Using Windows XP on an AMD System...