Solved

Drawing Menu/Scrollbars after NCPAINT

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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Expand macro to include alternate header placement and naming 5 72
Turn a spreadsheet into a vba executable. 2 87
sumNumber challenge 16 122
wordcount challenge 11 122
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.

803 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