Click here to Skip to main content
15,902,112 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: emulating a hard disk Pin
Diddy29-Jan-04 3:50
Diddy29-Jan-04 3:50 
QuestionHow to male some window - be over some other windows ? Pin
vgrigor28-Jan-04 2:11
vgrigor28-Jan-04 2:11 
AnswerRe: How to male some window - be over some other windows ? Pin
l a u r e n28-Jan-04 8:24
l a u r e n28-Jan-04 8:24 
GeneralEN_SELCHANGE Notification handling Pin
Muhammad Ahmed28-Jan-04 2:04
Muhammad Ahmed28-Jan-04 2:04 
GeneralRe: EN_SELCHANGE Notification handling Pin
David Crow28-Jan-04 2:42
David Crow28-Jan-04 2:42 
GeneralRe: EN_SELCHANGE Notification handling Pin
Muhammad Ahmed28-Jan-04 3:02
Muhammad Ahmed28-Jan-04 3:02 
GeneralWin32 - ActiveX question Pin
Scozturk28-Jan-04 2:00
professionalScozturk28-Jan-04 2:00 
GeneralRe: Win32 - ActiveX question Pin
Mike Dimmick28-Jan-04 2:30
Mike Dimmick28-Jan-04 2:30 
MFC does a lot of work behind the scenes to pretend that you can place an ActiveX control in your resources and have it 'just work'. See the code in DLGCORE.CPP in the MFC source, particularly CDialog::CreateDlgIndirect, for more details.

The Win32 dialog box API knows nothing of ActiveX controls and bombs out because it cannot find a suitable window class for the ActiveX control.

If you want to host ActiveX controls in a raw Win32 application, you need to implement a control site (from memory, you need to at least implement the IOleContainer and IOleControlSite interfaces) and then create the controls yourself.

For anyone who cares, MFC preprocesses the dialog template before passing it to Windows, stripping out (but remembering) any ActiveX control data and any list box initialisations (Win32 doesn't do this either). When Windows sends WM_INITDIALOG to the window, MFC actually calls CDialog::HandleInitDialog, which creates any ActiveX controls, initialises them, and performs any other control initialisations, before calling your override of OnInitDialog. In this way, it presents the illusion that ActiveX controls are controls like any other.
GeneralIP Address Pin
AnsGe28-Jan-04 1:36
AnsGe28-Jan-04 1:36 
GeneralRe: IP Address Pin
SJolly28-Jan-04 1:51
SJolly28-Jan-04 1:51 
GeneralRe: IP Address Pin
Anonymous29-Jan-04 0:24
Anonymous29-Jan-04 0:24 
GeneralRe: IP Address Pin
SJolly29-Jan-04 0:40
SJolly29-Jan-04 0:40 
GeneralCPU Usage Pin
YanivNahum28-Jan-04 1:29
YanivNahum28-Jan-04 1:29 
GeneralRe: CPU Usage Pin
David Crow28-Jan-04 2:47
David Crow28-Jan-04 2:47 
QuestionHow we can convert string to number or number to string? Pin
Mehdi_Hosseinpour28-Jan-04 1:03
Mehdi_Hosseinpour28-Jan-04 1:03 
AnswerRe: How we can convert string to number or number to string? Pin
YanivNahum28-Jan-04 1:27
YanivNahum28-Jan-04 1:27 
AnswerRe: How we can convert string to number or number to string? Pin
Anonymous28-Jan-04 1:52
Anonymous28-Jan-04 1:52 
AnswerRe: How we can convert string to number or number to string? Pin
toxcct28-Jan-04 2:18
toxcct28-Jan-04 2:18 
QuestionHow can open files inside program? Pin
Mehdi_Hosseinpour28-Jan-04 0:57
Mehdi_Hosseinpour28-Jan-04 0:57 
AnswerRe: How can open files inside program? Pin
Cedric Moonen28-Jan-04 1:41
Cedric Moonen28-Jan-04 1:41 
GeneralRe: How can open files inside program? Pin
David Crow28-Jan-04 2:50
David Crow28-Jan-04 2:50 
GeneralRe: How can open files inside program? Pin
Cedric Moonen28-Jan-04 3:02
Cedric Moonen28-Jan-04 3:02 
GeneralRadio Button problem Pin
Shenthil28-Jan-04 0:55
Shenthil28-Jan-04 0:55 
GeneralRe: Radio Button problem Pin
AnsGe28-Jan-04 1:41
AnsGe28-Jan-04 1:41 
GeneralRe: Radio Button problem Pin
Antti Keskinen28-Jan-04 1:51
Antti Keskinen28-Jan-04 1:51 

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.