Click here to Skip to main content
14,978,482 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: FTPS Connection Pin
David Crow30-Oct-19 10:17
MemberDavid Crow30-Oct-19 10:17 
AnswerRe: FTPS Connection Pin
Paul201330-Oct-19 11:30
MemberPaul201330-Oct-19 11:30 
Question.bmp and .ico MFC vc++ Pin
Member 1457555624-Oct-19 2:21
MemberMember 1457555624-Oct-19 2:21 
QuestionRe: .bmp and .ico MFC vc++ Pin
David Crow24-Oct-19 2:41
MemberDavid Crow24-Oct-19 2:41 
AnswerRe: .bmp and .ico MFC vc++ Pin
Member 1457555624-Oct-19 2:59
MemberMember 1457555624-Oct-19 2:59 
QuestionRe: .bmp and .ico MFC vc++ Pin
David Crow24-Oct-19 3:17
MemberDavid Crow24-Oct-19 3:17 
AnswerRe: .bmp and .ico MFC vc++ Pin
Member 1457555625-Oct-19 3:23
MemberMember 1457555625-Oct-19 3:23 
GeneralRe: .bmp and .ico MFC vc++ Pin
leon de boer24-Oct-19 15:10
Memberleon de boer24-Oct-19 15: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 21:42
mveRichard MacCutchan24-Oct-19 21:42 
GeneralRe: .bmp and .ico MFC vc++ Pin
Victor Nijegorodov24-Oct-19 23:19
MemberVictor Nijegorodov24-Oct-19 23:19 
GeneralRe: .bmp and .ico MFC vc++ Pin
leon de boer25-Oct-19 5:07
Memberleon de boer25-Oct-19 5:07 
AnswerRe: .bmp and .ico MFC vc++ Pin
Richard MacCutchan24-Oct-19 4:05
mveRichard MacCutchan24-Oct-19 4:05 
GeneralRe: .bmp and .ico MFC vc++ Pin
Member 1457555625-Oct-19 3:26
MemberMember 1457555625-Oct-19 3:26 
QuestionWhy can't I initialize ("initializer element is not constant") a struct with a truncated function pointer? Pin
arnold_w22-Oct-19 22:33
Memberarnold_w22-Oct-19 22:33 
GeneralRe: Why can't I initialize ("initializer element is not constant") a struct with a truncated function pointer? Pin
Richard MacCutchan22-Oct-19 23:35
mveRichard MacCutchan22-Oct-19 23:35 
GeneralRe: Why can't I initialize ("initializer element is not constant") a struct with a truncated function pointer? Pin
arnold_w23-Oct-19 0:49
Memberarnold_w23-Oct-19 0:49 
GeneralRe: Why can't I initialize ("initializer element is not constant") a struct with a truncated function pointer? Pin
Richard MacCutchan23-Oct-19 1:29
mveRichard MacCutchan23-Oct-19 1:29 
QuestionRe: Why can't I initialize ("initializer element is not constant") a struct with a truncated function pointer? Pin
CPallini23-Oct-19 1:25
mveCPallini23-Oct-19 1: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 2:21
Memberleon de boer23-Oct-19 2:21 
GeneralRe: Why can't I initialize ("initializer element is not constant") a struct with a truncated function pointer? Pin
arnold_w23-Oct-19 2:26
Memberarnold_w23-Oct-19 2: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 2:30
Memberleon de boer23-Oct-19 2:30 
QuestionAMD or Intel Pin
_Flaviu22-Oct-19 9:00
Member_Flaviu22-Oct-19 9:00 
QuestionRe: AMD or Intel Pin
David Crow22-Oct-19 10:00
MemberDavid Crow22-Oct-19 10:00 
AnswerRe: AMD or Intel Pin
_Flaviu22-Oct-19 19:35
Member_Flaviu22-Oct-19 19:35 
GeneralRe: AMD or Intel Pin
Richard MacCutchan22-Oct-19 21:42
mveRichard MacCutchan22-Oct-19 21: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.