Click here to Skip to main content
15,908,437 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Drawing text with DirectDraw Pin
Hanan88826-Mar-08 3:11
Hanan88826-Mar-08 3:11 
GeneralRe: Drawing text with DirectDraw Pin
James R. Twine26-Mar-08 4:58
James R. Twine26-Mar-08 4:58 
GeneralRe: Drawing text with DirectDraw Pin
Hanan88826-Mar-08 5:39
Hanan88826-Mar-08 5:39 
GeneralRe: Drawing text with DirectDraw Pin
Stephen Hewitt26-Mar-08 13:54
Stephen Hewitt26-Mar-08 13:54 
GeneralRe: Drawing text with DirectDraw Pin
Hanan88826-Mar-08 22:39
Hanan88826-Mar-08 22:39 
General64 bit API Hooking Pin
San246826-Mar-08 0:01
San246826-Mar-08 0:01 
QuestionCan I draw in a RichEdit Control Pin
Desmond Mardle25-Mar-08 23:56
Desmond Mardle25-Mar-08 23:56 
AnswerRe: Can I draw in a RichEdit Control Pin
Rajasekharan Vengalil26-Mar-08 0:24
Rajasekharan Vengalil26-Mar-08 0:24 
Why do you wish to draw on top of a rich edit control? When you talk about changing the "background color" do you want to change the background color of the control or the background color of the text within the control? SetBkColor does the latter and if that didn't work that's probably because the richedit's rendering code sets it back to what it wants, which is why directly drawing on to the DC of another window is typically a bad idea.

If you want to do this then you'd have to subclass the richedit control. There are many articles here[^] that talk about customizing rich edit.

As for handling display resolution changes, see WM_DISPLAYCHANGE[^]

--
gleat
http://blogorama.nerdworks.in[^]
--

Number Two's eyes narrowed and became what are known in the Shouting and Killing People trade as cold slits, the idea presumably being to give your opponent the impression that you have lost your glasses or are having difficulty keeping awake. Why this is frightening is an, as yet, unresolved problem. -- HHGTG


Questiondifference between static_cast and dynamic cast? Pin
rowdy_vc++25-Mar-08 23:37
rowdy_vc++25-Mar-08 23:37 
AnswerRe: difference between static_cast and dynamic cast? Pin
Maxwell Chen25-Mar-08 23:46
Maxwell Chen25-Mar-08 23:46 
AnswerRe: difference between static_cast and dynamic cast? Pin
Cedric Moonen25-Mar-08 23:55
Cedric Moonen25-Mar-08 23:55 
AnswerRe: difference between static_cast and dynamic cast? Pin
CPallini26-Mar-08 0:05
mveCPallini26-Mar-08 0:05 
GeneralRe: difference between static_cast and dynamic cast? Pin
BadKarma26-Mar-08 2:54
BadKarma26-Mar-08 2:54 
GeneralRe: difference between static_cast and dynamic cast? Pin
CPallini26-Mar-08 3:08
mveCPallini26-Mar-08 3:08 
GeneralC++ UAC elevation error on code Pin
spiced25-Mar-08 23:36
spiced25-Mar-08 23:36 
GeneralRe: C++ UAC elevation error on code Pin
Rajasekharan Vengalil26-Mar-08 0:12
Rajasekharan Vengalil26-Mar-08 0:12 
GeneralDesktop item postion - Shell programming Pin
tom87@2125-Mar-08 23:31
tom87@2125-Mar-08 23:31 
GeneralMaking a copy of the object inside the object Pin
piul25-Mar-08 23:00
piul25-Mar-08 23:00 
GeneralRe: Making a copy of the object inside the object Pin
CPallini25-Mar-08 23:14
mveCPallini25-Mar-08 23:14 
GeneralRe: Making a copy of the object inside the object Pin
piul25-Mar-08 23:22
piul25-Mar-08 23:22 
QuestionHow to enable the Maximize itemin System Menu for MFC appplications?? Pin
Vikas_12325-Mar-08 22:37
Vikas_12325-Mar-08 22:37 
AnswerRe: How to enable the Maximize itemin System Menu for MFC appplications?? Pin
Rajasekharan Vengalil26-Mar-08 0:04
Rajasekharan Vengalil26-Mar-08 0:04 
GeneralRe: How to enable the Maximize itemin System Menu for MFC appplications?? Pin
Vikas_12326-Mar-08 1:20
Vikas_12326-Mar-08 1:20 
GeneralRe: How to enable the Maximize itemin System Menu for MFC appplications?? Pin
Rajasekharan Vengalil26-Mar-08 1:26
Rajasekharan Vengalil26-Mar-08 1:26 
GeneralRe: How to enable the Maximize itemin System Menu for MFC appplications?? Pin
Vikas_12326-Mar-08 1:57
Vikas_12326-Mar-08 1: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.