Click here to Skip to main content
15,924,367 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Dialog Based Apps - Menu & Windows :: MFC Pin
valikac9-Sep-02 8:15
valikac9-Sep-02 8:15 
GeneralRe: Dialog Based Apps - Menu & Windows :: MFC Pin
adamUK9-Sep-02 8:53
adamUK9-Sep-02 8:53 
GeneralRe: Dialog Based Apps - Menu & Windows :: MFC Pin
valikac9-Sep-02 8:55
valikac9-Sep-02 8:55 
GeneralInvalid OLEVERB structure Pin
Ryan Cromwell9-Sep-02 7:45
Ryan Cromwell9-Sep-02 7:45 
GeneralSending email Pin
dsfasdfadsfasdfadsf9-Sep-02 7:43
dsfasdfadsfasdfadsf9-Sep-02 7:43 
GeneralRe: Sending email Pin
Chris Losinger9-Sep-02 8:04
professionalChris Losinger9-Sep-02 8:04 
GeneralRe: Sending email Pin
Alwin7510-Sep-02 3:03
Alwin7510-Sep-02 3:03 
GeneralMCI refresh problem !!! Pin
Hadi Rezaee9-Sep-02 7:24
Hadi Rezaee9-Sep-02 7:24 
Hello again,

I made MCI as child in a dialog(parent) ...
And i play a movie on that ...

I haven't problem in playing the movie ...
But there is strange problem only on WinXP Confused | :confused:

When i start playing ... i can't see movie on the child window ...
And when i move the parent window(refreshing) then i can see the movie !

What's wrong ...
My guess is OnEraseBkgnd in my parent dialog:

BOOL CElecompDlg::OnEraseBkgnd(CDC* pDC)
{

if(m_hBmp)
{
BITMAP bm;
GetObject(m_hBmp, sizeof(bm), &bm);
HDC hMemdc = CreateCompatibleDC(pDC->m_hDC);
if(hMemdc)
{
HBITMAP hOldBmp = (HBITMAP)SelectObject(hMemdc, m_hBmp);
if(hOldBmp)
{
BitBlt(pDC->m_hDC, 0, 0, bm.bmWidth, bm.bmHeight, hMemdc, 0, 0, SRCCOPY);
SelectObject(hMemdc, hOldBmp);
DeleteDC(hMemdc);
DeleteObject(hOldBmp);
return TRUE;
}
else
DeleteDC(hMemdc);
}

}
return CDialog::OnEraseBkgnd(pDC);
}

So, i used Invalidate function for refreshing child window affter i start playing movie in OnInitialDialog, But i still can not see movie in first of running program Confused | :confused: Confused | :confused: Confused | :confused:

Please help me Cry | :((

My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html

Hadi Rezaie
GeneralRe: MCI refresh problem !!! Pin
Joaquín M López Muñoz9-Sep-02 7:37
Joaquín M López Muñoz9-Sep-02 7:37 
GeneralRe: MCI refresh problem !!! Pin
Hadi Rezaee9-Sep-02 8:27
Hadi Rezaee9-Sep-02 8:27 
QuestionWhat to do????? Pin
Anonymous9-Sep-02 7:21
Anonymous9-Sep-02 7:21 
GeneralGUI/Data Design question Pin
JennyP9-Sep-02 6:58
JennyP9-Sep-02 6:58 
GeneralRe: GUI/Data Design question Pin
Joaquín M López Muñoz9-Sep-02 7:08
Joaquín M López Muñoz9-Sep-02 7:08 
GeneralRe: GUI/Data Design question Pin
JennyP9-Sep-02 8:14
JennyP9-Sep-02 8:14 
GeneralRe: GUI/Data Design question Pin
Joaquín M López Muñoz9-Sep-02 8:25
Joaquín M López Muñoz9-Sep-02 8:25 
QuestionDoes anyone have MFC Grid 2.23? Pin
petrym9-Sep-02 6:42
petrym9-Sep-02 6:42 
AnswerRe: Does anyone have MFC Grid 2.23? Pin
Joaquín M López Muñoz9-Sep-02 6:49
Joaquín M López Muñoz9-Sep-02 6:49 
GeneralRe: Does anyone have MFC Grid 2.23? Pin
petrym9-Sep-02 7:07
petrym9-Sep-02 7:07 
GeneralRe: Does anyone have MFC Grid 2.23? Pin
Joaquín M López Muñoz9-Sep-02 7:14
Joaquín M López Muñoz9-Sep-02 7:14 
GeneralRe: Does anyone have MFC Grid 2.23? Pin
petrym9-Sep-02 7:20
petrym9-Sep-02 7:20 
GeneralChanging dialog background color ... Pin
Hadi Rezaee9-Sep-02 6:41
Hadi Rezaee9-Sep-02 6:41 
GeneralRe: Changing dialog background color ... Pin
Joaquín M López Muñoz9-Sep-02 6:46
Joaquín M López Muñoz9-Sep-02 6:46 
GeneralRe: Changing dialog background color ... Pin
Hadi Rezaee9-Sep-02 6:53
Hadi Rezaee9-Sep-02 6:53 
GeneralRe: Changing dialog background color ... Pin
Joaquín M López Muñoz9-Sep-02 7:03
Joaquín M López Muñoz9-Sep-02 7:03 
QuestionGet refresh rate (frequency) of current display mode under Win9x? Pin
FatBastardDelivery9-Sep-02 5:46
FatBastardDelivery9-Sep-02 5:46 

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.