Click here to Skip to main content
15,892,059 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CListCtrl Pin
Rickard Andersson2023-Apr-03 6:39
Rickard Andersson2023-Apr-03 6:39 
GeneralRe: CListCtrl Pin
David Crow23-Apr-03 8:04
David Crow23-Apr-03 8:04 
GeneralRe: CListCtrl Pin
Nitron23-Apr-03 14:16
Nitron23-Apr-03 14:16 
GeneralRe: CListCtrl Pin
Joan M23-Apr-03 21:47
professionalJoan M23-Apr-03 21:47 
QuestionHow to hide or delete scrollbars in formview Pin
gmlnd23-Apr-03 5:55
gmlnd23-Apr-03 5:55 
GeneralModify a record content into an AdoRecordset Pin
Anonymous23-Apr-03 5:00
Anonymous23-Apr-03 5:00 
GeneralRe: Modify a record content into an AdoRecordset Pin
Toni7823-Apr-03 9:51
Toni7823-Apr-03 9:51 
GeneralCopying the contents of one window into another Pin
ironhead23-Apr-03 4:12
ironhead23-Apr-03 4:12 
Hey All,

I'm having a problem copying an are of one window into another. Here's what I've got:

case WM_PAINT:
{
PAINTSTRUCT ps;
HDC IconDC = BeginPaint(hwnd, &ps);
HDC TrayDC = GetDC(MainWnd);
HBITMAP IconBMP = CreateCompatibleBitmap(TrayDC, ICON_SIZE, ICON_SIZE);
HBITMAP OldBMP = (HBITMAP)SelectObject(IconDC, IconBMP);
BitBlt(IconDC, 0, 0, ICON_SIZE, ICON_SIZE, TrayDC, 0, 0, SRCCOPY);
DrawIconEx(IconDC, 0, 0, hicon, ICON_SIZE, ICON_SIZE, 0, NULL, DI_NORMAL);
ReleaseDC(MainWnd, TrayDC);
SelectObject(IconDC, OldBMP);
DeleteObject(IconBMP);
EndPaint(hwnd, &ps);
return 0;
}

For some reason, it doesn't seem to work (the contents of the TrayDC is not getting painted into the IconDC). From what I've read, I don't seem to be doing anything wrong.

Any help would be appreciated, thanx! Smile | :)

QuestionHow to load flash (SWF) from res: protocol ? Pin
renfield23-Apr-03 3:59
renfield23-Apr-03 3:59 
QuestionHow to determine buffer size in CryptEncrypt Pin
Chris Meech23-Apr-03 3:45
Chris Meech23-Apr-03 3:45 
AnswerRe: How to determine buffer size in CryptEncrypt Pin
Brian Shifrin23-Apr-03 7:13
Brian Shifrin23-Apr-03 7:13 
GeneralRe: How to determine buffer size in CryptEncrypt Pin
Chris Meech23-Apr-03 7:20
Chris Meech23-Apr-03 7:20 
General3x15 cell control Pin
doctorpi23-Apr-03 3:43
doctorpi23-Apr-03 3:43 
GeneralSocket Encryption. Pin
Mike Doner23-Apr-03 3:43
Mike Doner23-Apr-03 3:43 
GeneralWebBrowser Control / Java Plugin Pin
Bobuk23-Apr-03 3:37
Bobuk23-Apr-03 3:37 
QuestionHow to remotely start an application in a local network? Pin
David Gao23-Apr-03 3:27
David Gao23-Apr-03 3:27 
AnswerRe: How to remotely start an application in a local network? Pin
valikac23-Apr-03 6:13
valikac23-Apr-03 6:13 
GeneralAuto-resize of text-field Pin
JensB23-Apr-03 3:13
JensB23-Apr-03 3:13 
GeneralRe: Auto-resize of text-field Pin
valikac23-Apr-03 6:14
valikac23-Apr-03 6:14 
GeneralCallback functions Pin
will138323-Apr-03 2:51
will138323-Apr-03 2:51 
GeneralRe: Callback functions Pin
Rickard Andersson2023-Apr-03 2:57
Rickard Andersson2023-Apr-03 2:57 
GeneralRe: Callback functions Pin
will138323-Apr-03 3:00
will138323-Apr-03 3:00 
GeneralRe: Callback functions Pin
Rickard Andersson2023-Apr-03 3:05
Rickard Andersson2023-Apr-03 3:05 
GeneralCArray and Memory Leaks Pin
Ricky_TheBard23-Apr-03 2:40
Ricky_TheBard23-Apr-03 2:40 
GeneralRe: CArray and Memory Leaks Pin
Phil Hamer23-Apr-03 9:21
Phil Hamer23-Apr-03 9:21 

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.