Click here to Skip to main content
15,917,177 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CFileFolderSelectDlg? Pin
Ravi Bhavnani19-Mar-02 17:31
professionalRavi Bhavnani19-Mar-02 17:31 
GeneralRe: CFileFolderSelectDlg? Pin
Nish Nishant19-Mar-02 17:44
sitebuilderNish Nishant19-Mar-02 17:44 
GeneralRe: CFileFolderSelectDlg? Pin
Ravi Bhavnani19-Mar-02 17:57
professionalRavi Bhavnani19-Mar-02 17:57 
GeneralRe: CFileFolderSelectDlg? Pin
ColinDavies19-Mar-02 18:42
ColinDavies19-Mar-02 18:42 
GeneralRe: CFileFolderSelectDlg? Pin
Ravi Bhavnani19-Mar-02 18:55
professionalRavi Bhavnani19-Mar-02 18:55 
AnswerRe: CFileFolderSelectDlg? Pin
Michael Dunn19-Mar-02 17:53
sitebuilderMichael Dunn19-Mar-02 17:53 
GeneralRe: CFileFolderSelectDlg? Pin
Ravi Bhavnani19-Mar-02 18:01
professionalRavi Bhavnani19-Mar-02 18:01 
GeneralMFC Skinning Pin
Greven19-Mar-02 16:01
Greven19-Mar-02 16:01 
Been reading up on doing a win32 skin, and I can do it great in a standard win32 app. But now I try to do it in an MFC doc/view app and it doesn't quite work the same. I have a bitmap in my resource file, and I create a CBitmap from it. I can BitBlt it from the OnDraw function, but it will only draw in the view area... Not the whole app. How can I get it to draw over the entire application? Here is my current code that I'm using:
void CSkinTestView::OnDraw(CDC* pDC)
{
CSkinTestDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);

CDC memdc;
memdc.CreateCompatibleDC(pDC);
memdc.SelectObject((HBITMAP)m_Skin);

pDC->BitBlt(0, 0, 200, 75, &memdc, 0, 0, SRCCOPY);
}

m_Skin is a CBitmap variable that is created and grabs the bitmap from the resource in PreCreateWindow(). What can I change? I tried putting this type of thing in the Mainframe's paint call, but get all kinds of fun errors... Any sugggestions?

Programming in binary is as easy as 01 10 11.
GeneralRe: MFC Skinning Pin
alex.barylski19-Mar-02 21:33
alex.barylski19-Mar-02 21:33 
GeneralRe: MFC Skinning Pin
Jon Hulatt20-Mar-02 5:18
Jon Hulatt20-Mar-02 5:18 
GeneralQuestions regarding memory management (MALLOC) Pin
Jesse Rosalia19-Mar-02 13:38
Jesse Rosalia19-Mar-02 13:38 
GeneralRe: Questions regarding memory management (MALLOC) Pin
Paul M Watt19-Mar-02 13:54
mentorPaul M Watt19-Mar-02 13:54 
GeneralRe: Questions regarding memory management (MALLOC) Pin
Jesse Rosalia19-Mar-02 14:13
Jesse Rosalia19-Mar-02 14:13 
GeneralRe: Questions regarding memory management (MALLOC) Pin
Tim Smith19-Mar-02 14:35
Tim Smith19-Mar-02 14:35 
GeneralRe: Questions regarding memory management (MALLOC) Pin
Jesse Rosalia19-Mar-02 18:20
Jesse Rosalia19-Mar-02 18:20 
GeneralXP shutdown issue Pin
19-Mar-02 13:36
suss19-Mar-02 13:36 
GeneralRe: XP shutdown issue Pin
Bill Wilson19-Mar-02 14:16
Bill Wilson19-Mar-02 14:16 
GeneralRe: XP shutdown issue Pin
Joel Lucsy19-Mar-02 17:01
Joel Lucsy19-Mar-02 17:01 
QuestionHiding Dialogs? Pin
19-Mar-02 11:14
suss19-Mar-02 11:14 
AnswerRe: Hiding Dialogs? Pin
Mazdak19-Mar-02 11:25
Mazdak19-Mar-02 11:25 
AnswerRe: Hiding Dialogs? Pin
Joaquín M López Muñoz19-Mar-02 11:20
Joaquín M López Muñoz19-Mar-02 11:20 
AnswerRe: Hiding Dialogs? Pin
dazinith19-Mar-02 11:27
dazinith19-Mar-02 11:27 
GeneralRe: Hiding Dialogs? Pin
Nish Nishant19-Mar-02 13:32
sitebuilderNish Nishant19-Mar-02 13:32 
AnswerRe: Hiding Dialogs? Pin
20-Mar-02 3:02
suss20-Mar-02 3:02 
GeneralToolbar message handlers in .NET Pin
dazinith19-Mar-02 11:15
dazinith19-Mar-02 11:15 

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.