Click here to Skip to main content
15,890,512 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Could AfxBeginThread not run in a dll? Pin
Rage23-Jan-06 4:54
professionalRage23-Jan-06 4:54 
GeneralRe: Could AfxBeginThread not run in a dll? Pin
Rage23-Jan-06 3:39
professionalRage23-Jan-06 3:39 
GeneralRe: Could AfxBeginThread not run in a dll? Pin
rushing23-Jan-06 3:50
rushing23-Jan-06 3:50 
GeneralRe: Could AfxBeginThread not run in a dll? Pin
Rage23-Jan-06 4:55
professionalRage23-Jan-06 4:55 
GeneralRe: Could AfxBeginThread not run in a dll? Pin
rushing24-Jan-06 23:37
rushing24-Jan-06 23:37 
QuestionHow to draw next to a menu Pin
Shraddhan23-Jan-06 2:18
Shraddhan23-Jan-06 2:18 
AnswerRe: How to draw next to a menu Pin
Rage23-Jan-06 2:41
professionalRage23-Jan-06 2:41 
GeneralRe: How to draw next to a menu Pin
Shraddhan23-Jan-06 16:16
Shraddhan23-Jan-06 16:16 
Rage wrote:
Is this a Dialog or a SDI/MDI child window ?


Actually it is a CWnd which is behaving like a CDialog. (It used to be a CDialog, and for some unpsecified "good reasons" I noted in my comments long ago, it was converted to a CWnd.)

As for the actual drawing coordinates, I used the following code in OnNcPaint:
CPaintDC dc(this); // device context for painting
dc.Rectangle(100, 1, 700, 3);
dc.Rectangle(100, 5, 700, 7);
dc.Rectangle(100, 10, 700, 12);
dc.Rectangle(100, 15, 700, 17);
RECT rect = {50, 0, 700, 20};
dc.DrawText("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", 45, &rect, 0);
CWnd::OnNcPaint();

Commenting out the final line gave me a transparent header, though the menus still showed. The window varies from about 300 to 550 pixels wide.

The string of XXXXXXXXXX seemed to be drawn and rapidly covered over.

I thought that OnEraseBackground only handled the client area? Anyway, I tried it out, still did not paint to the right of the menu area.

Shraddhan
AnswerRe: How to draw next to a menu Pin
Owner drawn23-Jan-06 16:37
Owner drawn23-Jan-06 16:37 
GeneralRe: How to draw next to a menu Pin
Shraddhan23-Jan-06 16:48
Shraddhan23-Jan-06 16:48 
GeneralRe: How to draw next to a menu Pin
Owner drawn23-Jan-06 17:18
Owner drawn23-Jan-06 17:18 
GeneralRe: How to draw next to a menu Pin
Shraddhan23-Jan-06 17:36
Shraddhan23-Jan-06 17:36 
QuestionRe: How to draw next to a menu Pin
Owner drawn23-Jan-06 17:42
Owner drawn23-Jan-06 17:42 
AnswerRe: How to draw next to a menu Pin
Shraddhan23-Jan-06 17:52
Shraddhan23-Jan-06 17:52 
QuestionShare level permissions Pin
kelprinc23-Jan-06 2:14
kelprinc23-Jan-06 2:14 
QuestionVisual Studio setup project-remove MSI files cause the shortcut in Start menu error Pin
Phonol23-Jan-06 1:49
Phonol23-Jan-06 1:49 
Questionhelp! about Remote control soft some function(send screen and file)? Pin
MR.Setting23-Jan-06 1:08
MR.Setting23-Jan-06 1:08 
QuestionCButton not receiving messages Pin
Patrick Markl23-Jan-06 0:48
Patrick Markl23-Jan-06 0:48 
AnswerRe: CButton not receiving messages Pin
Rage23-Jan-06 2:42
professionalRage23-Jan-06 2:42 
GeneralRe: CButton not receiving messages Pin
Patrick Markl23-Jan-06 3:39
Patrick Markl23-Jan-06 3:39 
GeneralUpgrading VC6 Pin
hairy_hats23-Jan-06 0:06
hairy_hats23-Jan-06 0:06 
GeneralRe: Upgrading VC6 Pin
BadKarma23-Jan-06 1:29
BadKarma23-Jan-06 1:29 
GeneralRe: Upgrading VC6 Pin
Shraddhan23-Jan-06 2:35
Shraddhan23-Jan-06 2:35 
GeneralRe: Upgrading VC6 Pin
jhwurmbach23-Jan-06 6:22
jhwurmbach23-Jan-06 6:22 
GeneralRe: Upgrading VC6 Pin
Shraddhan23-Jan-06 16:27
Shraddhan23-Jan-06 16:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.