Click here to Skip to main content
14,364,335 members

C / C++ / MFC

 
QuestionRe: FTPS Connection Pin
David Crow30-Oct-19 11:17
memberDavid Crow30-Oct-19 11:17 
AnswerRe: FTPS Connection Pin
Paul201330-Oct-19 12:30
memberPaul201330-Oct-19 12:30 
Question.bmp and .ico MFC vc++ Pin
Member 1457555624-Oct-19 3:21
memberMember 1457555624-Oct-19 3:21 
QuestionRe: .bmp and .ico MFC vc++ Pin
David Crow24-Oct-19 3:41
memberDavid Crow24-Oct-19 3:41 
AnswerRe: .bmp and .ico MFC vc++ Pin
Member 1457555624-Oct-19 3:59
memberMember 1457555624-Oct-19 3:59 
QuestionRe: .bmp and .ico MFC vc++ Pin
David Crow24-Oct-19 4:17
memberDavid Crow24-Oct-19 4:17 
AnswerRe: .bmp and .ico MFC vc++ Pin
Member 1457555625-Oct-19 4:23
memberMember 1457555625-Oct-19 4:23 
GeneralRe: .bmp and .ico MFC vc++ Pin
leon de boer24-Oct-19 16:10
memberleon de boer24-Oct-19 16:10 
It's called the NON client area but sorry I don't use MFC enough to help.

What I can tell you is on the windows API it's the WM_NCPAINT message you need to handle
and you simply draw the image onto the Device Context it provides.

The WM_NCPAINT message is sent to a window when its frame must be painted.
The DC is funny it is the size of the whole frame window with a big hole in the middle you cant draw which is the normal
client area. So you can draw from RECT.bottom up whatever the height of the frame is.

WM_NCPAINT message - Windows applications | Microsoft Docs[^]

You need to handle that however you do in MFC (the code snippett on the link shows how you get the DC on normal Win32 API).
In vino veritas

GeneralRe: .bmp and .ico MFC vc++ Pin
Richard MacCutchan24-Oct-19 22:42
protectorRichard MacCutchan24-Oct-19 22:42 
GeneralRe: .bmp and .ico MFC vc++ Pin
Victor Nijegorodov25-Oct-19 0:19
memberVictor Nijegorodov25-Oct-19 0:19 
GeneralRe: .bmp and .ico MFC vc++ Pin
leon de boer25-Oct-19 6:07
memberleon de boer25-Oct-19 6:07 
AnswerRe: .bmp and .ico MFC vc++ Pin
Richard MacCutchan24-Oct-19 5:05
protectorRichard MacCutchan24-Oct-19 5:05 
GeneralRe: .bmp and .ico MFC vc++ Pin
Member 1457555625-Oct-19 4:26
memberMember 1457555625-Oct-19 4:26 
QuestionWhy can't I initialize ("initializer element is not constant") a struct with a truncated function pointer? Pin
arnold_w22-Oct-19 23:33
memberarnold_w22-Oct-19 23:33 
GeneralRe: Why can't I initialize ("initializer element is not constant") a struct with a truncated function pointer? Pin
Richard MacCutchan23-Oct-19 0:35
protectorRichard MacCutchan23-Oct-19 0:35 
GeneralRe: Why can't I initialize ("initializer element is not constant") a struct with a truncated function pointer? Pin
arnold_w23-Oct-19 1:49
memberarnold_w23-Oct-19 1:49 
GeneralRe: Why can't I initialize ("initializer element is not constant") a struct with a truncated function pointer? Pin
Richard MacCutchan23-Oct-19 2:29
protectorRichard MacCutchan23-Oct-19 2:29 
QuestionRe: Why can't I initialize ("initializer element is not constant") a struct with a truncated function pointer? Pin
CPallini23-Oct-19 2:25
mveCPallini23-Oct-19 2:25 
AnswerRe: Why can't I initialize ("initializer element is not constant") a struct with a truncated function pointer? Pin
leon de boer23-Oct-19 3:21
memberleon de boer23-Oct-19 3:21 
GeneralRe: Why can't I initialize ("initializer element is not constant") a struct with a truncated function pointer? Pin
arnold_w23-Oct-19 3:26
memberarnold_w23-Oct-19 3:26 
GeneralRe: Why can't I initialize ("initializer element is not constant") a struct with a truncated function pointer? Pin
leon de boer23-Oct-19 3:30
memberleon de boer23-Oct-19 3:30 
QuestionAMD or Intel Pin
_Flaviu22-Oct-19 10:00
member_Flaviu22-Oct-19 10:00 
QuestionRe: AMD or Intel Pin
David Crow22-Oct-19 11:00
memberDavid Crow22-Oct-19 11:00 
AnswerRe: AMD or Intel Pin
_Flaviu22-Oct-19 20:35
member_Flaviu22-Oct-19 20:35 
GeneralRe: AMD or Intel Pin
Richard MacCutchan22-Oct-19 22:42
protectorRichard MacCutchan22-Oct-19 22:42 

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.