Click here to Skip to main content
16,011,949 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCompiler Switches /MD and MT Pin
nde_plume11-Apr-07 6:10
nde_plume11-Apr-07 6:10 
AnswerRe: Compiler Switches /MD and MT [modified] Pin
sthotakura11-Apr-07 11:35
sthotakura11-Apr-07 11:35 
QuestionWin32 Graphical drawing. Pin
deville7511-Apr-07 4:33
deville7511-Apr-07 4:33 
AnswerRe: Win32 Graphical drawing. Pin
Cedric Moonen11-Apr-07 4:45
Cedric Moonen11-Apr-07 4:45 
GeneralRe: Win32 Graphical drawing. Pin
deville7511-Apr-07 4:53
deville7511-Apr-07 4:53 
GeneralRe: Win32 Graphical drawing. Pin
deville7511-Apr-07 5:20
deville7511-Apr-07 5:20 
GeneralRe: Win32 Graphical drawing. Pin
deville7511-Apr-07 5:25
deville7511-Apr-07 5:25 
GeneralRe: Win32 Graphical drawing. Pin
Cedric Moonen11-Apr-07 7:31
Cedric Moonen11-Apr-07 7:31 
One message to reply to all your questions Wink | ;)

First, your suggestion of using the clipboard when the window loose focus is not really good (it is even very scary): imagine that all applications will do that. Do you imagine what a mess it would be ? And the poor user which desperately tries to copy/paste something Unsure | :~

In fact, once you understand the philosophy, everything makes perfect sense. I suggest that you google to find some tutorials about win32 programming (you'll probably find some usefull articles on this website). If you plan to program in win32, it is highly recommanded.

Now, for your last question: in fact the WM_PAINT message is not sent continuously: it is sent only when your window needs to be repainted (so when you minimize it, when something comes in front of it, ...). But, if you need to refresh it (for example because new data needs to be displayed), you need to invalidate it, which will cause a WM_PAINT message to be sent. For that, you can call InvalidateRect[^]

While searching for the link to this function, I came upon this link[^] which is probably what you need to get started.

Enjoy Big Grin | :-D


Cédric Moonen
Software developer

Charting control [v1.1]

Questionhow to convert _variant_t to char*? Pin
Arris7411-Apr-07 4:06
Arris7411-Apr-07 4:06 
AnswerRe: how to convert _variant_t to char*? Pin
led mike11-Apr-07 6:15
led mike11-Apr-07 6:15 
Questiondoes visual studio express support mfc? Pin
IlanTal11-Apr-07 3:52
IlanTal11-Apr-07 3:52 
AnswerRe: does visual studio express support mfc? Pin
toxcct11-Apr-07 3:54
toxcct11-Apr-07 3:54 
QuestionCOM Pin
prathuraj11-Apr-07 3:01
prathuraj11-Apr-07 3:01 
AnswerRe: COM Pin
cp987611-Apr-07 3:02
cp987611-Apr-07 3:02 
AnswerRe: COM Pin
Hamid_RT11-Apr-07 3:05
Hamid_RT11-Apr-07 3:05 
GeneralRe: COM Pin
prathuraj11-Apr-07 3:29
prathuraj11-Apr-07 3:29 
GeneralRe: COM Pin
Hamid_RT11-Apr-07 4:09
Hamid_RT11-Apr-07 4:09 
QuestionAccess denied error in service program [modified] Pin
A_K_C11-Apr-07 2:42
A_K_C11-Apr-07 2:42 
AnswerRe: Access denied error in service program Pin
CPallini11-Apr-07 2:52
mveCPallini11-Apr-07 2:52 
GeneralRe: Access denied error in service program Pin
A_K_C11-Apr-07 3:44
A_K_C11-Apr-07 3:44 
QuestionUsing Unicode Pin
iayd11-Apr-07 2:27
iayd11-Apr-07 2:27 
AnswerRe: Using Unicode Pin
Steve S11-Apr-07 3:01
Steve S11-Apr-07 3:01 
GeneralRe: Using Unicode Pin
iayd11-Apr-07 3:16
iayd11-Apr-07 3:16 
AnswerRe: Using Unicode Pin
iayd11-Apr-07 4:01
iayd11-Apr-07 4:01 
QuestionConvert WCHAR * to TCHAR * Pin
amitmistry_petlad 11-Apr-07 1:24
amitmistry_petlad 11-Apr-07 1:24 

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.