Click here to Skip to main content
15,919,121 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: -T("") Pin
peterchen25-Feb-03 23:08
peterchen25-Feb-03 23:08 
GeneralRe: -T("") Pin
Anonymous25-Feb-03 23:36
Anonymous25-Feb-03 23:36 
GeneralAPC time overhead Pin
peterchen25-Feb-03 22:16
peterchen25-Feb-03 22:16 
GeneralRe: APC time overhead Pin
KarstenK25-Feb-03 23:16
mveKarstenK25-Feb-03 23:16 
GeneralRe: APC time overhead Pin
peterchen26-Feb-03 4:29
peterchen26-Feb-03 4:29 
Generalevent for internet connection Pin
Captain Kirk25-Feb-03 22:01
Captain Kirk25-Feb-03 22:01 
GeneralRe: event for internet connection Pin
HENDRIK R25-Feb-03 22:56
HENDRIK R25-Feb-03 22:56 
Generalcalling modal message dialog from external dll Pin
lob25-Feb-03 21:31
lob25-Feb-03 21:31 
Hello,

I have application where i need to show modal message window.
It should be custom ( not AfxMessageBox ) , so i built a class

CPopupDlg which is inherited from CDialog and it's a DLL , because i need to call it from different dialogs ( and i don't want to duplicate it . It doesn't have title bar.


CPopup constructor gets "CWnd* pParent" ( for z-order , etc )

So , i call for it in following way ( from another dialogs ):

CPopupDlg* pPopupDlg;
pPopupDlg = new CPopupDlg( this );
pPopupDlg->SetPopupMessage( m_strPopupMsg );
pPopupDlg->DoModal();

The dialog itself works fine , showing needed msg with custom
colors , custom buttons , etc.

BUT , there is a problem.

There's a title above CPopup dialog ( while originally it doesn't
have title bar ) of dialog calling for it.

For example , if calling dialog has title text "My Test Window"
this text will appear in title above CPopup dialog .


Here's screenshot

Here's entry from .rc file
/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_POPUP_DIALOG DIALOG DISCARDABLE 0, 0, 187, 92
STYLE WS_POPUP
FONT 8, "MS Sans Serif"
BEGIN
DEFPUSHBUTTON "OK",IDOK,130,7,50,14,NOT WS_VISIBLE
PUSHBUTTON "Cancel",IDCANCEL,130,24,50,14,NOT WS_VISIBLE |
WS_DISABLED
CONTROL "popupOK",IDC_POPUP_OK,"Button",BS_OWNERDRAW | NOT
WS_VISIBLE | WS_DISABLED | WS_TABSTOP,15,65,55,15
CONTROL "popupCancel",IDC_POPUP_CANCEL,"Button",BS_OWNERDRAW |
NOT WS_VISIBLE | WS_DISABLED | WS_TABSTOP,115,60,50,20
END



Any help greatly appreciated ( it's pretty urgent ),
thanks a lot
GeneralRe: calling modal message dialog from external dll Pin
Hans Ruck25-Feb-03 22:47
Hans Ruck25-Feb-03 22:47 
GeneralSimple question: COleCurrecy ==> CString Format $149,50 Pin
Willem B25-Feb-03 21:22
Willem B25-Feb-03 21:22 
GeneralRe: Simple question: COleCurrecy ==> CString Format $149,50 Pin
RobJones26-Feb-03 5:14
RobJones26-Feb-03 5:14 
GeneralCRichEditCtrl scrolling Pin
Vivek Dabral25-Feb-03 19:02
Vivek Dabral25-Feb-03 19:02 
GeneralGDI32 & USER32 Pin
vikramlinux25-Feb-03 18:09
vikramlinux25-Feb-03 18:09 
GeneralRead MSVC 6 .dsp/.dsw Files or VS COM Interface Pin
Garth J Lancaster25-Feb-03 17:22
professionalGarth J Lancaster25-Feb-03 17:22 
GeneralRe: Read MSVC 6 .dsp/.dsw Files or VS COM Interface Pin
Jim Crafton25-Feb-03 17:32
Jim Crafton25-Feb-03 17:32 
GeneralRe: Read MSVC 6 .dsp/.dsw Files or VS COM Interface Pin
Chris Richardson25-Feb-03 17:46
Chris Richardson25-Feb-03 17:46 
GeneralRe: Read MSVC 6 .dsp/.dsw Files or VS COM Interface Pin
Garth J Lancaster26-Feb-03 10:14
professionalGarth J Lancaster26-Feb-03 10:14 
GeneralRe: Read MSVC 6 .dsp/.dsw Files or VS COM Interface Pin
Neville Franks25-Feb-03 22:40
Neville Franks25-Feb-03 22:40 
GeneralRe: Read MSVC 6 .dsp/.dsw Files or VS COM Interface Pin
Jim Crafton26-Feb-03 9:20
Jim Crafton26-Feb-03 9:20 
GeneralRe: Read MSVC 6 .dsp/.dsw Files or VS COM Interface Pin
Neville Franks26-Feb-03 9:27
Neville Franks26-Feb-03 9:27 
GeneralRe: Read MSVC 6 .dsp/.dsw Files or VS COM Interface Pin
Garth J Lancaster26-Feb-03 10:05
professionalGarth J Lancaster26-Feb-03 10:05 
GeneralRe: Read MSVC 6 .dsp/.dsw Files or VS COM Interface Pin
Garth J Lancaster26-Feb-03 9:54
professionalGarth J Lancaster26-Feb-03 9:54 
GeneralRe: Read MSVC 6 .dsp/.dsw Files or VS COM Interface Pin
Chris Richardson26-Feb-03 10:20
Chris Richardson26-Feb-03 10:20 
GeneralComplete explorer integration Pin
paulf432125-Feb-03 17:20
paulf432125-Feb-03 17:20 
GeneralRe: Complete explorer integration Pin
Jim Crafton25-Feb-03 17:34
Jim Crafton25-Feb-03 17:34 

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.