I'm writing an application with Embarcadero RAD 2 Studio (borland) and the owlNext library.
There I create a TDecoratedMDIFrame
Object, which I open by using
class TMDIApp : public owl::TApplication { // -------------------------------
public:
TMDIApp() : owl::TApplication(ProgName) {}
TMDIApp(const char far* name, HINSTANCE instance, HINSTANCE prevInstance, const char far* cmdLine, int cmdShow) : owl::TApplication(name, instance, prevInstance, cmdLine, cmdShow) {}
void InitMainWindow();
};
void TMDIApp::InitMainWindow() { // --------------------------
PMAcMDI = new TMAcMDI;
PMW = new TDecoratedMDIFrame(ProgName, MAC_MENU, *PMAcMDI);
MainWindow = PMW;
}
int OwlMain(int, char* []) { // ------------------------
return TMDIApp().Run();
}
So, in the end it get's opened by aplicat.cpp of the owlnext library using MainWindow->ShowWindow(nCmdShow);
.
However, Now I want to open it maximized.
I made some research and came upon
PMW->WindowProc(WM_SIZE,SIZE_MAXIMIZED,0);
Which doesn't seem to do anything...
Does anyone of you know how to maximize this window or starting it maximized?