Click here to Skip to main content
15,923,142 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: TO EVRY BODY html path in .lnk file Pin
Richard MacCutchan27-May-11 1:16
mveRichard MacCutchan27-May-11 1:16 
GeneralRe: TO EVRY BODY html path in .lnk file Pin
Niklas L27-May-11 1:24
Niklas L27-May-11 1:24 
AnswerRe: TO EVRY BODY html path in .lnk file Pin
Richard MacCutchan27-May-11 1:47
mveRichard MacCutchan27-May-11 1:47 
AnswerRe: TO EVRY BODY html path in .lnk file Pin
Luc Pattyn27-May-11 1:59
sitebuilderLuc Pattyn27-May-11 1:59 
GeneralRe: TO EVRY BODY html path in .lnk file Pin
Richard MacCutchan27-May-11 2:38
mveRichard MacCutchan27-May-11 2:38 
GeneralRe: TO EVRY BODY html path in .lnk file Pin
Luc Pattyn27-May-11 2:56
sitebuilderLuc Pattyn27-May-11 2:56 
GeneralRe: TO EVRY BODY html path in .lnk file Pin
Richard MacCutchan27-May-11 3:05
mveRichard MacCutchan27-May-11 3:05 
GeneralRe: TO EVRY BODY html path in .lnk file Pin
Luc Pattyn27-May-11 3:11
sitebuilderLuc Pattyn27-May-11 3:11 
GeneralRe: TO EVRY BODY html path in .lnk file Pin
limelect27-May-11 8:30
limelect27-May-11 8:30 
GeneralRe: This work see link TO EVRY BODY html path in .lnk file Pin
limelect29-May-11 21:51
limelect29-May-11 21:51 
QuestionHow to quit an application immediately without executing the next line of code Pin
manoharbalu26-May-11 20:02
manoharbalu26-May-11 20:02 
AnswerRe: How to quit an application immediately without executing the next line of code Pin
_AnsHUMAN_ 26-May-11 20:13
_AnsHUMAN_ 26-May-11 20:13 
GeneralRe: How to quit an application immediately without executing the next line of code Pin
Albert Holguin27-May-11 4:27
professionalAlbert Holguin27-May-11 4:27 
AnswerRe: How to quit an application immediately without executing the next line of code Pin
ThatsAlok26-May-11 21:35
ThatsAlok26-May-11 21:35 
GeneralRe: How to quit an application immediately without executing the next line of code Pin
Albert Holguin27-May-11 4:28
professionalAlbert Holguin27-May-11 4:28 
AnswerRe: How to quit an application immediately without executing the next line of code Pin
Richard MacCutchan26-May-11 22:10
mveRichard MacCutchan26-May-11 22:10 
AnswerRe: How to quit an application immediately without executing the next line of code Pin
Chris Losinger27-May-11 4:21
professionalChris Losinger27-May-11 4:21 
AnswerRe: How to quit an application immediately without executing the next line of code Pin
Albert Holguin27-May-11 4:27
professionalAlbert Holguin27-May-11 4:27 
GeneralRe: How to quit an application immediately without executing the next line of code Pin
ThatsAlok29-May-11 19:02
ThatsAlok29-May-11 19:02 
GeneralRe: How to quit an application immediately without executing the next line of code Pin
Albert Holguin30-May-11 12:16
professionalAlbert Holguin30-May-11 12:16 
QuestionHow to use CreateRemoteThread in Win7/Vista ? Pin
wangningyu26-May-11 14:58
wangningyu26-May-11 14:58 
AnswerRe: How to use CreateRemoteThread in Win7/Vista ? Pin
fat_boy26-May-11 23:40
fat_boy26-May-11 23:40 
GeneralRe: How to use CreateRemoteThread in Win7/Vista ? Pin
wangningyu27-May-11 14:28
wangningyu27-May-11 14:28 
Question[win32]Draw on a background bitmap Pin
Member 296547126-May-11 3:03
Member 296547126-May-11 3:03 
Hi, this is the code:
case WM_MOUSEMOVE:
pt.x = LOWORD(lParam);
pt.y = HIWORD(lParam);
InvalidateRect(hWnd,NULL,TRUE);
break;

case WM_PAINT:
hdc = BeginPaint(hWnd, &ps);

memDC = CreateCompatibleDC(hdc);

SelectObject(memDC,hbmp);

GetObject(bmp, sizeof(bm), &bm);

GetClientRect(hWnd,&rcc);
			
StretchBlt(hdc, 
0,0, rcc.right,rcc.bottom,
memDC, 
0,0,bm.bmWidth, bm.bmHeight, 
SRCCOPY);

//onMouseMove
MoveToEx(hdc, pt.x , 0 , NULL); 
LineTo(hdc, pt.x, rcc.bottom); 
MoveToEx(hdc, 0, pt.y, NULL); 
LineTo(hdc, rcc.right, pt.y); 


how can i draw lines on mouse move without repainting the background bitmap? There's a way to "fix" the bitmap on background and repaint only lines?
AnswerRe: [win32]Draw on a background bitmap Pin
Richard MacCutchan26-May-11 3:37
mveRichard MacCutchan26-May-11 3:37 

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.