Click here to Skip to main content
15,922,015 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How does the process create threads? Pin
David Crow7-Apr-05 4:57
David Crow7-Apr-05 4:57 
GeneralProblem adding a user control in my application Pin
a7corsair7-Apr-05 3:10
a7corsair7-Apr-05 3:10 
Generalproblem with singleton as lib Pin
javatheist7-Apr-05 2:42
javatheist7-Apr-05 2:42 
GeneralRe: problem with singleton as lib Pin
Blake Miller7-Apr-05 4:21
Blake Miller7-Apr-05 4:21 
GeneralBitmap 'editing' Pin
mcsherry7-Apr-05 2:26
mcsherry7-Apr-05 2:26 
GeneralRe: Bitmap 'editing' Pin
David Crow7-Apr-05 2:28
David Crow7-Apr-05 2:28 
GeneralRe: Bitmap 'editing' Pin
mcsherry7-Apr-05 2:35
mcsherry7-Apr-05 2:35 
GeneralRe: Bitmap 'editing' Pin
David Crow7-Apr-05 4:55
David Crow7-Apr-05 4:55 
Understood, but I think you can still use LineTo() to modify the bitmap, and then display the final result. You need to select the bitmap into a compatible DC, add to it using LineTo(), and then draw it using BitBlt(). Something like:

CDC dcCompatible;
dcCompatible.CreateCompatibleDC(pDC);
CBitmap *pBitmap = dcCompatible.SelectObject(pointer_to_CBitmap_object);
dcCompatible.LineTo(...);
pDC->BitBlt(0, 0, width_of_bmp, height_of_bmp, &dcCompatible, 0, 0, SRCCOPY);
dcCompatible.SelectObject(pBitmap);



"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow


GeneralRe: Bitmap 'editing' Pin
mcsherry7-Apr-05 21:48
mcsherry7-Apr-05 21:48 
GeneralPCA algorithm Pin
Rassul Yunussov7-Apr-05 1:37
Rassul Yunussov7-Apr-05 1:37 
GeneralRe: PCA algorithm Pin
jhwurmbach7-Apr-05 3:18
jhwurmbach7-Apr-05 3:18 
Generalmulti-column popup menu Pin
karmafx7-Apr-05 1:16
karmafx7-Apr-05 1:16 
GeneralRe: multi-column popup menu Pin
karmafx7-Apr-05 2:51
karmafx7-Apr-05 2:51 
GeneralHandles Pin
Balaji Krishna7-Apr-05 1:01
Balaji Krishna7-Apr-05 1:01 
GeneralI can't show a CStatic in Dialog!! Pin
thanh-hai.bui7-Apr-05 0:31
thanh-hai.bui7-Apr-05 0:31 
GeneralRe: I can't show a CStatic in Dialog!! Pin
toxcct7-Apr-05 0:35
toxcct7-Apr-05 0:35 
GeneralRe: I can't show a CStatic in Dialog!! Pin
BadJerry7-Apr-05 0:37
BadJerry7-Apr-05 0:37 
GeneralRe: I can't show a CStatic in Dialog!! Pin
thanh-hai.bui7-Apr-05 1:18
thanh-hai.bui7-Apr-05 1:18 
GeneralRe: I can't show a CStatic in Dialog!! Pin
BadJerry7-Apr-05 1:23
BadJerry7-Apr-05 1:23 
GeneralRe: I can't show a CStatic in Dialog!! Pin
toxcct7-Apr-05 1:57
toxcct7-Apr-05 1:57 
GeneralRe: I can't show a CStatic in Dialog!! Pin
BadJerry7-Apr-05 4:18
BadJerry7-Apr-05 4:18 
GeneralRe: I can't show a CStatic in Dialog!! Pin
Cedric Moonen7-Apr-05 4:25
Cedric Moonen7-Apr-05 4:25 
GeneralRe: I can't show a CStatic in Dialog!! Pin
toxcct7-Apr-05 5:07
toxcct7-Apr-05 5:07 
GeneralRe: I can't show a CStatic in Dialog!! Pin
BadJerry7-Apr-05 5:13
BadJerry7-Apr-05 5:13 
GeneralRe: I can't show a CStatic in Dialog!! Pin
toxcct7-Apr-05 5:16
toxcct7-Apr-05 5:16 

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.