![]() |
Flat MDIClient edges |
Post Reply ![]() |
Author | |
Lenz ![]() Newbie ![]() ![]() Joined: 03 September 2003 Location: South Africa Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() Posted: 11 September 2003 at 10:01am |
I'm using the XTreme Suite. Does anyone know how to create a MDI application so that the client edges are flat? Ive included an image of the area. Edited by Lenz |
|
Lenz
|
|
![]() |
|
Sven ![]() Senior Member ![]() Joined: 21 August 2003 Location: Germany Status: Offline Points: 127 |
![]() ![]() ![]() ![]() ![]() |
The link to your image is invalid.
|
|
![]() |
|
kstowell ![]() Admin Group ![]() Joined: 25 January 2003 Location: MIchigan, USA Status: Offline Points: 496 |
![]() ![]() ![]() ![]() ![]() |
Hello, Override the WindowProc virtual function for your view and add the following code: LRESULT CSampleView::WindowProc(UINT message, WPARAM wParam, LPARAM lParam){ switch (message) { case WM_NCPAINT: { CWindowDC dc(this); CRect rc; GetWindowRect(&rc); int cx = rc.Width(); int cy = rc.Height(); const COLORREF clrFrame = GetXtremeColor(XPCOLOR_3DSHADOW); dc.Draw3dRect(0, 0, cx, cy, clrFrame, clrFrame); return TRUE; } case WM_NCCALCSIZE: // adjust non-client area for border space return CView::WindowProc(message, wParam, lParam); Let me know if this helps. Cheers, Edited by Administrator |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |