Click here to Skip to main content
       

C / C++ / MFC

 
AnswerRe: Formatting Output PinmemberGarth J Lancaster20-Feb-13 12:33 
GeneralRe: Formatting Output PinmemberSarah Trattner20-Feb-13 13:00 
GeneralRe: Formatting Output PinmemberGarth J Lancaster20-Feb-13 13:26 
GeneralRe: Formatting Output PinmemberGarth J Lancaster20-Feb-13 13:37 
QuestionBOM Code PinmvpMichael Haephrati מיכאל האפרתי20-Feb-13 10:41 
SuggestionRe: BOM Code PinmemberDavidCrow20-Feb-13 10:47 
GeneralRe: BOM Code PinmvpMichael Haephrati מיכאל האפרתי20-Feb-13 10:49 
QuestionOn displaying two images second image overlapps first image Pinmembertoms from newdelhi20-Feb-13 0:32 
I'm writing a program to display multiple images on character select:
my code is on
case WM_CHAR:
		{
		
		switch((char)wParam)
		{
				
		case 'A': case 'a':
			
		hbmp =  LoadBitmap(hInst, MAKEINTRESOURCE(IDB_BITMAP2));
 
		break;
		case 'B': case 'b':	
	
			hbmp =  LoadBitmap(hInst, MAKEINTRESOURCE(IDB_BITMAP3));
			
			break;
			case 'C': case 'c':
			hbmp =  LoadBitmap(hInst, MAKEINTRESOURCE(IDB_BITMAP4));
			
			break;
		 default:
            break;
		
		}
		}
		break;
 
case WM_PAINT:
 
		{
 hDC = GetDC(picBoxDisp);
  
 	    /* Create a memory device compatible with the above DC variable*/
	    MemDCExercising = CreateCompatibleDC(hDC);
             /* Select the new bitmap*/
             SelectObject(MemDCExercising, hbmp);
	    /* Copy the bits from the memory DC into the current dc*/
	    BitBlt(hDC, 0, 0, 200, 200, MemDCExercising, 0, 0, SRCCOPY);
DeleteObject(hbmp);			
    DeleteDC(MemDCExercising);
	
	SendMessage(picBoxDisp,BM_SETIMAGE,IMAGE_BITMAP,(LPARAM)hbmp);
 
 
 
Images are displayed correctly but second image overlapps first...
AnswerRe: On displaying two images second image overlapps first image PinmvpRichard MacCutchan20-Feb-13 2:40 
AnswerRe: On displaying two images second image overlapps first image PinmvpMichael Haephrati מיכאל האפרתי20-Feb-13 10:15 
QuestionCFileDialog with preview working in Xp but not in Win7 Pinmemberyogeshs19-Feb-13 18:50 
AnswerRe: CFileDialog with preview working in Xp but not in Win7 PinmvpRichard MacCutchan19-Feb-13 22:10 
GeneralRe: CFileDialog with preview working in Xp but not in Win7 Pinmemberyogeshs19-Feb-13 22:46 
GeneralRe: CFileDialog with preview working in Xp but not in Win7 PinmvpRichard MacCutchan19-Feb-13 23:01 
GeneralRe: CFileDialog with preview working in Xp but not in Win7 Pinmemberyogeshs20-Feb-13 18:46 
GeneralRe: CFileDialog with preview working in Xp but not in Win7 PinmvpRichard MacCutchan20-Feb-13 21:06 
QuestionProblem Reading/Writing Registry in Windows 7? PinmemberMember 919975419-Feb-13 9:40 
AnswerRe: Problem Reading/Writing Registry in Windows 7? PinmemberDavidCrow19-Feb-13 9:50 
GeneralRe: Problem Reading/Writing Registry in Windows 7? PinmemberMember 919975419-Feb-13 13:10 
GeneralRe: Problem Reading/Writing Registry in Windows 7? PinmemberPeter_in_278019-Feb-13 20:48 
GeneralRe: Problem Reading/Writing Registry in Windows 7? PinmemberMember 919975420-Feb-13 6:27 
AnswerRe: Problem Reading/Writing Registry in Windows 7? Pinmemberjschell20-Feb-13 8:11 
GeneralRe: Problem Reading/Writing Registry in Windows 7? Pinmemberjeron120-Feb-13 8:14 
GeneralRe: Problem Reading/Writing Registry in Windows 7? PinmemberMember 919975420-Feb-13 16:31 
AnswerRe: Problem Reading/Writing Registry in Windows 7? PinmemberMax_Power_Up26-Feb-13 5:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 24 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid