Click here to Skip to main content
15,885,141 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: C++ function source code size Pin
Stuart Dootson15-Apr-09 11:18
professionalStuart Dootson15-Apr-09 11:18 
GeneralRe: C++ function source code size Pin
Rolf Kristensen15-Apr-09 11:52
Rolf Kristensen15-Apr-09 11:52 
GeneralRe: C++ function source code size Pin
Stuart Dootson15-Apr-09 15:15
professionalStuart Dootson15-Apr-09 15:15 
GeneralRe: C++ function source code size Pin
Eureka_jim16-Apr-09 6:13
Eureka_jim16-Apr-09 6:13 
AnswerRe: C++ function source code size Pin
Rolf Kristensen15-Apr-09 11:50
Rolf Kristensen15-Apr-09 11:50 
QuestionActiveX Pin
siva45515-Apr-09 8:33
siva45515-Apr-09 8:33 
AnswerRe: ActiveX Pin
KarstenK16-Apr-09 4:35
mveKarstenK16-Apr-09 4:35 
QuestionSendMessage in VS 2008 Pin
CString(0xcccccccc)15-Apr-09 7:41
CString(0xcccccccc)15-Apr-09 7:41 
I wrote an override for the OnNcPaint. It works fine, but I have a problem.
I want Windows to do the painting in a part of the NC area and let me do the painting for the remaning part.

More precisely, I want windows to draw the menu and let me do the remaining of the painting.

My ideea is to paint what I need then send a WM_NCPAINT message and a handle in wParam to the region where I want Windows to do the painting. The problem is that SendMessage drowns in some ATL code (I'm unfamiliar with ATL).

The error is about accessing an invalid address. I suppose Windows cannot access the definition of the region referred by my region handle. I think I'm supposed to do some sort of marshalling of the HRGN object, but as I said, I'm unfamiliar with ATL. Can somebody help ?
AnswerRe: SendMessage in VS 2008 Pin
Stuart Dootson15-Apr-09 9:43
professionalStuart Dootson15-Apr-09 9:43 
GeneralRe: SendMessage in VS 2008 Pin
CString(0xcccccccc)15-Apr-09 12:48
CString(0xcccccccc)15-Apr-09 12:48 
GeneralRe: SendMessage in VS 2008 Pin
Stuart Dootson15-Apr-09 15:33
professionalStuart Dootson15-Apr-09 15:33 
GeneralRe: SendMessage in VS 2008 Pin
CString(0xcccccccc)15-Apr-09 21:31
CString(0xcccccccc)15-Apr-09 21:31 
GeneralRe: SendMessage in VS 2008 Pin
Stuart Dootson15-Apr-09 22:30
professionalStuart Dootson15-Apr-09 22:30 
GeneralRe: SendMessage in VS 2008 Pin
CString(0xcccccccc)16-Apr-09 11:38
CString(0xcccccccc)16-Apr-09 11:38 
GeneralRe: SendMessage in VS 2008 Pin
Stuart Dootson16-Apr-09 13:46
professionalStuart Dootson16-Apr-09 13:46 
GeneralRe: SendMessage in VS 2008 Pin
CString(0xcccccccc)16-Apr-09 22:16
CString(0xcccccccc)16-Apr-09 22:16 
Questioncreating tooltip that follows cusor, to display coordinates. Pin
soongez15-Apr-09 6:21
soongez15-Apr-09 6:21 
AnswerRe: creating tooltip that follows cusor, to display coordinates. Pin
Stuart Dootson15-Apr-09 9:40
professionalStuart Dootson15-Apr-09 9:40 
QuestionRe: creating tooltip that follows cusor, to display coordinates. Pin
Maximilien15-Apr-09 10:06
Maximilien15-Apr-09 10:06 
AnswerRe: creating tooltip that follows cusor, to display coordinates. Pin
soongez15-Apr-09 15:19
soongez15-Apr-09 15:19 
AnswerRe: creating tooltip that follows cusor, to display coordinates. Pin
Rolf Kristensen15-Apr-09 20:49
Rolf Kristensen15-Apr-09 20:49 
QuestionDate Picker Control - Need to switch from British to American Format. Pin
Don Jones BNYMellon15-Apr-09 4:09
Don Jones BNYMellon15-Apr-09 4:09 
AnswerRe: Date Picker Control - Need to switch from British to American Format. Pin
led mike15-Apr-09 4:18
led mike15-Apr-09 4:18 
GeneralRe: Date Picker Control - Need to switch from British to American Format. Pin
Don Jones BNYMellon15-Apr-09 4:59
Don Jones BNYMellon15-Apr-09 4:59 
QuestionRe: Date Picker Control - Need to switch from British to American Format. Pin
David Crow15-Apr-09 5:57
David Crow15-Apr-09 5:57 

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.