Solved

Drawing Menu/Scrollbars after NCPAINT

Posted on 2004-04-09
3
341 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
isEverywhere  challenge 19 72
java ^ examples 8 62
haveThree challenge 22 114
ASP.NET C# MessageBox.Show Showing a modal dialog box or form when the application ... 2 104
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

867 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now