Click here to Skip to main content
15,891,033 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDynamic Scroll bar Pin
Paulraj G5-Jul-10 0:23
Paulraj G5-Jul-10 0:23 
AnswerRe: Dynamic Scroll bar Pin
Richard MacCutchan5-Jul-10 0:32
mveRichard MacCutchan5-Jul-10 0:32 
QuestionProblem in attaching CBitmap to CImage's Attach() Pin
humais4-Jul-10 22:29
humais4-Jul-10 22:29 
AnswerRe: Problem in attaching CBitmap to CImage's Attach() Pin
Niklas L4-Jul-10 22:43
Niklas L4-Jul-10 22:43 
GeneralRe: Problem in attaching CBitmap to CImage's Attach() Pin
humais4-Jul-10 22:49
humais4-Jul-10 22:49 
GeneralRe: Problem in attaching CBitmap to CImage's Attach() Pin
Niklas L4-Jul-10 23:04
Niklas L4-Jul-10 23:04 
GeneralRe: Problem in attaching CBitmap to CImage's Attach() Pin
humais4-Jul-10 23:17
humais4-Jul-10 23:17 
GeneralRe: Problem in attaching CBitmap to CImage's Attach() Pin
Niklas L4-Jul-10 23:27
Niklas L4-Jul-10 23:27 
In save.

You have the bitmap in bmpCap, so you only have to move the handle over to the CImage instance while saving, and then move it back again.

Make sure you're not creating the bitmap every time you enter OnPaint (should that not be OnDraw btw?). Verify that (HBITMAP)bmpCap == nullptr before creating it.

QuestionHow to call a function when dll is statically loaded? Pin
narayanagvs4-Jul-10 20:14
narayanagvs4-Jul-10 20:14 
AnswerRe: How to call a function when dll is statically loaded? Pin
«_Superman_»4-Jul-10 21:23
professional«_Superman_»4-Jul-10 21:23 
QuestionVS2008 and VS2010 installed on the same machine. Pin
Chesnokov Yuriy4-Jul-10 19:30
professionalChesnokov Yuriy4-Jul-10 19:30 
AnswerRe: VS2008 and VS2010 installed on the same machine. Pin
«_Superman_»4-Jul-10 19:44
professional«_Superman_»4-Jul-10 19:44 
AnswerRe: VS2008 and VS2010 installed on the same machine. Pin
Pavel Sokolov5-Jul-10 14:22
Pavel Sokolov5-Jul-10 14:22 
QuestionHow to calculate FLOPS per second Pin
anitharosary4-Jul-10 19:02
anitharosary4-Jul-10 19:02 
AnswerRe: How to calculate FLOPS per second Pin
Peter_in_27804-Jul-10 19:25
professionalPeter_in_27804-Jul-10 19:25 
GeneralRe: How to calculate FLOPS per second Pin
anitharosary4-Jul-10 19:51
anitharosary4-Jul-10 19:51 
AnswerRe: How to calculate FLOPS per second Pin
Tim Craig4-Jul-10 21:44
Tim Craig4-Jul-10 21:44 
QuestionHow to display an MFC View in a web browser? Pin
Paul Steane4-Jul-10 2:47
Paul Steane4-Jul-10 2:47 
AnswerRe: How to display an MFC View in a web browser? Pin
Eugen Podsypalnikov4-Jul-10 22:06
Eugen Podsypalnikov4-Jul-10 22:06 
QuestionAsserion Failed:file wincore.cpp, Line 1047 Pin
CHYGO3-Jul-10 23:31
CHYGO3-Jul-10 23:31 
AnswerRe: Asserion Failed:file wincore.cpp, Line 1047 Pin
CHYGO4-Jul-10 2:35
CHYGO4-Jul-10 2:35 
GeneralRe: Asserion Failed:file wincore.cpp, Line 1047 Pin
Niklas L4-Jul-10 22:55
Niklas L4-Jul-10 22:55 
Question[Solved] Assigning xy coordinates to array values Pin
SilentDude56k3-Jul-10 22:27
SilentDude56k3-Jul-10 22:27 
AnswerRe: Assigning xy coordinates to array values [modified] Pin
Niklas L4-Jul-10 3:57
Niklas L4-Jul-10 3:57 
GeneralRe: Assigning xy coordinates to array values Pin
SilentDude56k4-Jul-10 9:44
SilentDude56k4-Jul-10 9:44 

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.