Solved

Drawing Menu/Scrollbars after NCPAINT

Posted on 2004-04-09
3
345 Views
Last Modified: 2013-11-20
Hello,

     Sorry for the low point value.  Ill add as many points as I can before the project is answered.
     Ok, the problem is this, after overriding OnNcPaint, OnNcHitTest, OnNcCalcSize, OnNcLButtonDown, and OnNcLButtonDblClk, my system (main)menu (stored in the resource file), as well as any scrollbars are not displayed.  I dont think i can call the default form process over again from the override, as i have changed the client size considerably.  Im hoping there are functions to draw it, but im willing to do any way possable.  If you can push me close enough in the right direction, the points are yours.

Thank you
Richard
0
Comment
Question by:RichardCesar
3 Comments
 

Author Comment

by:RichardCesar
ID: 10797907
Increased Points
0
 
LVL 11

Accepted Solution

by:
KurtVon earned 25 total points
ID: 10827847
Drawing XP NC stuff is complex: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/userex/refentry.asp but there are ways to do it without blocking Win2000 NC drawing taht you can use, like http://www.codeproject.com/managedcpp/ManagedUxTheme.asp?df=100&forumid=16513&exp=0&select=727594

For non-XP drawing (or in XP while ignoring the skins) you can use the API calls like DrawCaption and DrawEdge.

There is also a nice example of drawing the non-client area by shrinking the region in the message: http://core.tav.kiev.ua/~om/msj/0697/c++textfigs.htm but I haven't tried that myself.

Hope this helps.
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how to monitor remote shell execution on linux 9 104
either24  challenge 19 101
zeroFront challenge 7 114
Problem to event 3 102
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question