Click here to Skip to main content
15,034,986 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: C fread to read 512k binary file Pin
Software_Developer20-Aug-16 0:03
MemberSoftware_Developer20-Aug-16 0:03 
GeneralRe: C fread to read 512k binary file Pin
Fossi Bluman23-Aug-16 6:45
MemberFossi Bluman23-Aug-16 6:45 
QuestionVector as function return Pin
Donguy19769-Aug-16 15:40
MemberDonguy19769-Aug-16 15:40 
AnswerRe: Vector as function return Pin
Richard MacCutchan9-Aug-16 20:57
mveRichard MacCutchan9-Aug-16 20:57 
QuestionAdding Text to the Frame Of a Dialog Pin
ForNow9-Aug-16 4:39
MemberForNow9-Aug-16 4:39 
AnswerRe: Adding Text to the Frame Of a Dialog Pin
jeron19-Aug-16 8:33
Memberjeron19-Aug-16 8:33 
GeneralRe: Adding Text to the Frame Of a Dialog Pin
ForNow9-Aug-16 13:07
MemberForNow9-Aug-16 13:07 
AnswerRe: Adding Text to the Frame Of a Dialog Pin
leon de boer9-Aug-16 19:05
Memberleon de boer9-Aug-16 19:05 
You should be able to do it from the WM_NCPAINT call which will give you the DC to place a bitmap or text in.

You will probably have to subclass the window (which means holding the current window handler) because you
will probably need to call the current handler then effectively draw over the top of everything. I think
if you just do your drawing and drop thru the existing handler will overwrite whatever you put on the DC.

Don't forget if you use text to set the background to transparent otherwise you will get a white box background
where the text is.

If you need to search for stuff technically what you are doing is skinning a dialog box.
In vino veritas

GeneralRe: Adding Text to the Frame Of a Dialog Pin
ForNow10-Aug-16 3:47
MemberForNow10-Aug-16 3:47 
SuggestionRe: Adding Text to the Frame Of a Dialog Pin
David Crow10-Aug-16 5:41
MemberDavid Crow10-Aug-16 5:41 
GeneralRe: Adding Text to the Frame Of a Dialog Pin
leon de boer10-Aug-16 17:07
Memberleon de boer10-Aug-16 17:07 
GeneralRe: Adding Text to the Frame Of a Dialog Pin
ForNow10-Aug-16 20:31
MemberForNow10-Aug-16 20:31 
GeneralRe: Adding Text to the Frame Of a Dialog Pin
leon de boer11-Aug-16 3:00
Memberleon de boer11-Aug-16 3:00 
GeneralRe: Adding Text to the Frame Of a Dialog Pin
ForNow11-Aug-16 3:18
MemberForNow11-Aug-16 3:18 
GeneralRe: Adding Text to the Frame Of a Dialog Pin
ForNow11-Aug-16 2:58
MemberForNow11-Aug-16 2:58 
AnswerRe: Adding Text to the Frame Of a Dialog Pin
Richard MacCutchan9-Aug-16 20:49
mveRichard MacCutchan9-Aug-16 20:49 
Questionconst "getter" but updating on request? Pin
FriendOfAsherah8-Aug-16 21:20
MemberFriendOfAsherah8-Aug-16 21:20 
AnswerRe: const "getter" but updating on request? Pin
Jochen Arndt8-Aug-16 23:46
professionalJochen Arndt8-Aug-16 23:46 
GeneralRe: const "getter" but updating on request? Pin
FriendOfAsherah9-Aug-16 2:30
MemberFriendOfAsherah9-Aug-16 2:30 
GeneralRe: const "getter" but updating on request? Pin
Jochen Arndt9-Aug-16 3:03
professionalJochen Arndt9-Aug-16 3:03 
QuestionGrowing Pains Going from Debug to Release Pin
ForNow8-Aug-16 9:19
MemberForNow8-Aug-16 9:19 
AnswerRe: Growing Pains Going from Debug to Release Pin
CPallini8-Aug-16 20:31
mveCPallini8-Aug-16 20:31 
GeneralRe: Growing Pains Going from Debug to Release Pin
ForNow8-Aug-16 21:15
MemberForNow8-Aug-16 21:15 
QuestionC programming Pin
Kofi_Tommy7-Aug-16 8:16
MemberKofi_Tommy7-Aug-16 8:16 
QuestionRe: C programming Pin
David Crow7-Aug-16 10:38
MemberDavid Crow7-Aug-16 10:38 

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.