Click here to Skip to main content
15,916,280 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How do I read a particular registry key Pin
Matthew Devine12-Jul-05 4:26
Matthew Devine12-Jul-05 4:26 
GeneralRe: How do I read a particular registry key Pin
Jose Lamas Rios12-Jul-05 4:41
Jose Lamas Rios12-Jul-05 4:41 
GeneralRe: How do I read a particular registry key Pin
David Crow12-Jul-05 5:16
David Crow12-Jul-05 5:16 
AnswerRe: How do I read a particular registry key Pin
Ravi Bhavnani12-Jul-05 3:01
professionalRavi Bhavnani12-Jul-05 3:01 
QuestionHow to place image in Excel? Pin
Member 95748212-Jul-05 2:12
Member 95748212-Jul-05 2:12 
GeneralINI file processing from memory Pin
_rubinho_12-Jul-05 1:46
_rubinho_12-Jul-05 1:46 
GeneralRe: INI file processing from memory Pin
Indivara12-Jul-05 2:27
professionalIndivara12-Jul-05 2:27 
GeneralRe: INI file processing from memory Pin
_rubinho_12-Jul-05 3:23
_rubinho_12-Jul-05 3:23 
GeneralRe: INI file processing from memory Pin
David Crow12-Jul-05 5:21
David Crow12-Jul-05 5:21 
GeneralRe: INI file processing from memory Pin
_rubinho_12-Jul-05 5:39
_rubinho_12-Jul-05 5:39 
GeneralRe: INI file processing from memory Pin
krmed12-Jul-05 6:03
krmed12-Jul-05 6:03 
GeneralRe: INI file processing from memory Pin
_rubinho_12-Jul-05 6:26
_rubinho_12-Jul-05 6:26 
GeneralRe: INI file processing from memory Pin
Jose Lamas Rios12-Jul-05 7:46
Jose Lamas Rios12-Jul-05 7:46 
GeneralRe: INI file processing from memory Pin
Joe Woodbury13-Jul-05 8:24
professionalJoe Woodbury13-Jul-05 8:24 
GeneralPainting Several Images - not refreshing screen Pin
seq-12-Jul-05 1:41
seq-12-Jul-05 1:41 
Hello, Im using the following line of code to draw a image in a window:

hSkinBmp=(HBITMAP)LoadImage(NULL, name, IMAGE_BITMAP, 0,0,LR_LOADFROMFILE);
HDC hdc = BeginPaint(hWnd6, &ps);
HDC hdcMem = CreateCompatibleDC(hdc);


HBITMAP hbmOld = (HBITMAP)SelectObject(hdcMem, hSkinBmp);
GetObject(hSkinBmp, sizeof(bm), &bm);
BitBlt(hdc, 2, 30, bm.bmWidth, bm.bmHeight, hdcMem, 0, 0, SRCCOPY);
SelectObject(hdcMem, hbmOld);

DeleteDC(hdcMem);
ReleaseDC(hWnd6,hdc);
EndPaint(hWnd6, &ps);
UpdateWindow(hWnd6);

--
And it works, the image is being drawn on the window, but then when try to run this function again to load a different image in the same window (like a slideshow), the second image is not shown on the window (the old image stays), untill I minimize and maximize the window.

What could be the reason for that?
Thx in advance
GeneralRe: Painting Several Images - not refreshing screen Pin
Jose Lamas Rios12-Jul-05 2:26
Jose Lamas Rios12-Jul-05 2:26 
GeneralRe: Painting Several Images - not refreshing screen Pin
seq-12-Jul-05 10:36
seq-12-Jul-05 10:36 
GeneralRe: Painting Several Images - not refreshing screen Pin
Blake Miller12-Jul-05 5:01
Blake Miller12-Jul-05 5:01 
GeneralShowing properties of MULTIPLE files Pin
tabor2512-Jul-05 1:12
tabor2512-Jul-05 1:12 
GeneralRe: Showing properties of MULTIPLE files Pin
David Crow12-Jul-05 3:05
David Crow12-Jul-05 3:05 
GeneralRe: Showing properties of MULTIPLE files Pin
tabor2512-Jul-05 10:03
tabor2512-Jul-05 10:03 
GeneralRe: Showing properties of MULTIPLE files Pin
David Crow14-Jul-05 4:06
David Crow14-Jul-05 4:06 
GeneraliSubItem always = 0 on many ListCtrl Events Pin
Maverick12-Jul-05 0:41
Maverick12-Jul-05 0:41 
GeneralRe: iSubItem always = 0 on many ListCtrl Events Pin
Andrew Kirillov12-Jul-05 1:32
Andrew Kirillov12-Jul-05 1:32 
Generalabout console window positioning Pin
prat7812-Jul-05 0:39
prat7812-Jul-05 0:39 

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.