Click here to Skip to main content
15,894,720 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
QuestionHow to capture the image from mediaplayer? Pin
rushing11-Jul-05 23:20
rushing11-Jul-05 23:20 
GeneralWriting Version Info Pin
Mepho11-Jul-05 23:02
Mepho11-Jul-05 23:02 
GeneralRe: Writing Version Info Pin
munawar196812-Jul-05 0:32
munawar196812-Jul-05 0:32 
GeneralRe: Writing Version Info Pin
Mepho12-Jul-05 20:39
Mepho12-Jul-05 20:39 
GeneralThrowing exceptions from COM components Pin
Uwe Keim11-Jul-05 22:27
sitebuilderUwe Keim11-Jul-05 22:27 
GeneralRe: Throwing exceptions from COM components Pin
Tim Smith12-Jul-05 3:53
Tim Smith12-Jul-05 3:53 
GeneralContinous Graph--Scrolling-----HEEELP Pin
Raza568011-Jul-05 22:05
Raza568011-Jul-05 22:05 

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.