Click here to Skip to main content
15,887,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Get selected data in list control Pin
CPallini29-Nov-09 22:53
mveCPallini29-Nov-09 22:53 
QuestionAbout creating and hiding window in win32 Pin
Nandu_77b29-Nov-09 21:54
Nandu_77b29-Nov-09 21:54 
QuestionRe: About creating and hiding window in win32 Pin
_AnsHUMAN_ 29-Nov-09 22:32
_AnsHUMAN_ 29-Nov-09 22:32 
AnswerRe: About creating and hiding window in win32 Pin
Nandu_77b29-Nov-09 22:37
Nandu_77b29-Nov-09 22:37 
QuestionRe: About creating and hiding window in win32 Pin
CPallini29-Nov-09 22:49
mveCPallini29-Nov-09 22:49 
AnswerRe: About creating and hiding window in win32 Pin
Nandu_77b29-Nov-09 23:32
Nandu_77b29-Nov-09 23:32 
AnswerRe: About creating and hiding window in win32 Pin
David Crow30-Nov-09 5:50
David Crow30-Nov-09 5:50 
QuestionDraw image on Wizard (not header) so it appear on every page. Pin
Nitish Biswas 8429-Nov-09 20:09
Nitish Biswas 8429-Nov-09 20:09 
I want to draw an image on wizard(CpropertySheet - wizard mode)'s top, it has Wizard97 style and I hide the header, so that this image can be seen on every page of that wizard.

I have drawn the image in OnPint() handler and return TRUE from OnEraseBkgnd() handler of CPropertySheet derived class. From every page, I return FALSE from OnEraseBkgnd() handler.
But this is not working as I want to work.

BOOL MyWizardSheet::OnInitDialog()
{
if(NULL == m_hBitmap)
{
m_hBitmap = (HBITMAP)LoadImage( NULL,
szManufactureLogoName.GetBuffer(),
IMAGE_BITMAP,
0,
0,
LR_LOADFROMFILE );
szManufactureLogoName.ReleaseBuffer();
}

return CPropertySheet::OnInitDialog();
}

void MyWizardSheet::OnPaint()
{
CPaintDC dc(this);
CBitmap cbitmap;
BITMAP pbm;

if(NULL != m_hBitmap)
{
cbitmap.Attach(m_hBitmap);
cbitmap.GetBitmap(&pbm);

CDC dcMemory;
dcMemory.CreateCompatibleDC (&dc);

CBitmap* pOldBitmap = dcMemory.SelectObject (&cbitmap);

CRect rect;
GetClientRect (&rect);

dc.StretchBlt(0, 0, rect.Width(),pbm.bmHeight,
&dcMemory,
0, 0, pbm.bmWidth, pbm.bmHeight, SRCCOPY);

dcMemory.SelectObject (pOldBitmap);
}

}
AnswerRe: Draw image on Wizard (not header) so it appear on every page. Pin
KingsGambit29-Nov-09 21:19
KingsGambit29-Nov-09 21:19 
QuestionWhat does this mean about the VC6/VS2003 compiler's option ( /O2 /Od) Pin
wangningyu29-Nov-09 14:17
wangningyu29-Nov-09 14:17 
AnswerRe: What does this mean about the VC6/VS2003 compiler's option ( /O2 /Od) Pin
Joe Woodbury29-Nov-09 15:54
professionalJoe Woodbury29-Nov-09 15:54 
AnswerRe: What does this mean about the VC6/VS2003 compiler's option ( /O2 /Od) Pin
David Crow29-Nov-09 15:55
David Crow29-Nov-09 15:55 
AnswerRe: What does this mean about the VC6/VS2003 compiler's option ( /O2 /Od) Pin
«_Superman_»29-Nov-09 18:47
professional«_Superman_»29-Nov-09 18:47 
GeneralRe: What does this mean about the VC6/VS2003 compiler's option ( /O2 /Od) Pin
wangningyu29-Nov-09 23:07
wangningyu29-Nov-09 23:07 
GeneralRe: What does this mean about the VC6/VS2003 compiler's option ( /O2 /Od) Pin
«_Superman_»30-Nov-09 5:16
professional«_Superman_»30-Nov-09 5:16 
AnswerRe: What does this mean about the VC6/VS2003 compiler's option ( /O2 /Od) Pin
Michael Schubert29-Nov-09 21:15
Michael Schubert29-Nov-09 21:15 
QuestionWhy I cannot have a ListControl in a CRecordView derived class? Pin
Larry Mills Sr29-Nov-09 7:09
Larry Mills Sr29-Nov-09 7:09 
AnswerRe: Why I cannot have a ListControl in a CRecordView derived class? Pin
«_Superman_»29-Nov-09 8:18
professional«_Superman_»29-Nov-09 8:18 
GeneralRe: Why I cannot have a ListControl in a CRecordView derived class? Pin
Larry Mills Sr29-Nov-09 8:33
Larry Mills Sr29-Nov-09 8:33 
GeneralRe: Why I cannot have a ListControl in a CRecordView derived class? Pin
«_Superman_»29-Nov-09 8:45
professional«_Superman_»29-Nov-09 8:45 
GeneralRe: Why I cannot have a ListControl in a CRecordView derived class? Pin
Larry Mills Sr29-Nov-09 13:07
Larry Mills Sr29-Nov-09 13:07 
QuestionRe: Why I cannot have a ListControl in a CRecordView derived class? Pin
David Crow29-Nov-09 15:57
David Crow29-Nov-09 15:57 
AnswerRe: Why I cannot have a ListControl in a CRecordView derived class? Pin
Larry Mills Sr1-Dec-09 3:01
Larry Mills Sr1-Dec-09 3:01 
QuestionRe: Why I cannot have a ListControl in a CRecordView derived class? Pin
David Crow1-Dec-09 3:04
David Crow1-Dec-09 3:04 
AnswerRe: Why I cannot have a ListControl in a CRecordView derived class? Pin
Larry Mills Sr2-Dec-09 2:35
Larry Mills Sr2-Dec-09 2:35 

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.