Click here to Skip to main content
15,888,521 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCTreeCtrl scrollbar not worked properly for large data. Pin
Le@rner31-Jul-12 1:34
Le@rner31-Jul-12 1:34 
GeneralRe: CTreeCtrl scrollbar not worked properly for large data. Pin
CPallini31-Jul-12 1:59
mveCPallini31-Jul-12 1:59 
GeneralRe: CTreeCtrl scrollbar not worked properly for large data. Pin
Le@rner31-Jul-12 2:17
Le@rner31-Jul-12 2:17 
GeneralRe: CTreeCtrl scrollbar not worked properly for large data. Pin
CPallini31-Jul-12 2:25
mveCPallini31-Jul-12 2:25 
QuestionC++ Win32 drawing Pin
Xarzu30-Jul-12 19:07
Xarzu30-Jul-12 19:07 
AnswerRe: C++ Win32 drawing Pin
«_Superman_»30-Jul-12 19:53
professional«_Superman_»30-Jul-12 19:53 
AnswerRe: C++ Win32 drawing Pin
Richard MacCutchan30-Jul-12 21:58
mveRichard MacCutchan30-Jul-12 21:58 
AnswerRe: C++ Win32 drawing Pin
pasztorpisti31-Jul-12 2:44
pasztorpisti31-Jul-12 2:44 
In a general win32 program you should handle the WM_PAINT (and maybe the WM_ERASEBKGND) message of the windows you want to paint. In WM_PAINT you might get a HDC handle to draw on (with GDI functions[^]). If you are not working with a framework that gives you a HDC to draw on then you have to call BeginPaint()[^] and EndPaint()[^] in your WM_PAINT handler and beginpaint gives you a HDC draw on before you call EndPaint().
Its important to draw you window from the WM_PAINT handler because the surface of your window might get lost any time (at least this was the case before 3D accelerated desktops) for example when someone brings a window in front of your window and then it switches back to your window. In this case windows might send a WM_PAINT to your window to redraw its surface and the thing you drew on it will disappear if you don't redraw it from the WM_PAINT. You can't assume that the thing you draw on a window remains there if you perform drawing from outside the WM_PAINT handler.
AnswerRe: C++ Win32 drawing Pin
Albert Holguin31-Jul-12 7:07
professionalAlbert Holguin31-Jul-12 7:07 
Generalwebservice client in c/c++ Pin
sangamdumne30-Jul-12 18:52
sangamdumne30-Jul-12 18:52 
GeneralRe: webservice client in c/c++ Pin
«_Superman_»30-Jul-12 19:56
professional«_Superman_»30-Jul-12 19:56 
GeneralRe: webservice client in c/c++ Pin
sangamdumne30-Jul-12 23:20
sangamdumne30-Jul-12 23:20 
GeneralRe: webservice client in c/c++ Pin
Software_Developer30-Jul-12 23:42
Software_Developer30-Jul-12 23:42 
AnswerRe: webservice client in c/c++ Pin
Albert Holguin31-Jul-12 7:11
professionalAlbert Holguin31-Jul-12 7:11 
QuestionMFC design pattern Pin
shanmugarajaa30-Jul-12 18:50
shanmugarajaa30-Jul-12 18:50 
AnswerRe: MFC design pattern Pin
_Flaviu30-Jul-12 20:27
_Flaviu30-Jul-12 20:27 
AnswerRe: MFC design pattern Pin
Richard MacCutchan30-Jul-12 21:55
mveRichard MacCutchan30-Jul-12 21:55 
GeneralRe: MFC design pattern Pin
pasztorpisti31-Jul-12 2:46
pasztorpisti31-Jul-12 2:46 
GeneralRe: MFC design pattern Pin
Richard MacCutchan31-Jul-12 3:01
mveRichard MacCutchan31-Jul-12 3:01 
GeneralRe: MFC design pattern Pin
pasztorpisti31-Jul-12 3:04
pasztorpisti31-Jul-12 3:04 
GeneralRe: MFC design pattern Pin
pasztorpisti31-Jul-12 2:50
pasztorpisti31-Jul-12 2:50 
GeneralRe: MFC design pattern Pin
Maximilien31-Jul-12 10:56
Maximilien31-Jul-12 10:56 
GeneralRe: MFC design pattern Pin
pasztorpisti31-Jul-12 11:07
pasztorpisti31-Jul-12 11:07 
AnswerRe: MFC design pattern Pin
Software_Developer1-Aug-12 6:25
Software_Developer1-Aug-12 6:25 
QuestionBest way to draw 3d bar graph? Pin
Phil Outram30-Jul-12 8:41
Phil Outram30-Jul-12 8:41 

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.