Click here to Skip to main content
15,913,685 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help to understand these codes! Pin
ZoogieZork11-Aug-03 18:41
ZoogieZork11-Aug-03 18:41 
GeneralRe: Help to understand these codes! Pin
igor196011-Aug-03 18:42
igor196011-Aug-03 18:42 
GeneralSetting Master Volume Pin
NorthWoodsman11-Aug-03 17:48
NorthWoodsman11-Aug-03 17:48 
GeneralRe: Setting Master Volume Pin
David Crow12-Aug-03 5:03
David Crow12-Aug-03 5:03 
QuestionHow to convert a non-mfc multithreading vc++6.0 win32sdk program to a mfc one ? Pin
suninwater11-Aug-03 17:27
suninwater11-Aug-03 17:27 
AnswerRe: How to convert a non-mfc multithreading vc++6.0 win32sdk program to a mfc one ? Pin
pranavamhari11-Aug-03 17:43
pranavamhari11-Aug-03 17:43 
GeneralRe: How to convert a non-mfc multithreading vc++6.0 win32sdk program to a mfc one ? Pin
suninwater11-Aug-03 19:14
suninwater11-Aug-03 19:14 
GeneralRe: How to convert a non-mfc multithreading vc++6.0 win32sdk program to a mfc one ? Pin
igor196011-Aug-03 19:46
igor196011-Aug-03 19:46 
If it's a standalone windows program like SDI/MDI/or Dialog: solution maybe very easy:
Just create standard MFC COleControl application:
1. Overload OnCreateWindow -- add to it creation of your main Win32 SDI/MDI/Dialog frame or window; immediately after that call SetParent on it so your Control Window will becomw parent of it -- also you may need to change style of your Win32 window to WS_CHILD -- remeber m_hWnd32 handler to your SDI/MDI/Dialog frame here in one of member variables;
2. Overload OnSize of your COleControl and resize your m_hWnd32 here to occupy all available space of COleControl;
3. Remove message pump from the original code of your application -- you are running on message pump of container now;
4. Add PreTranslateMessage to you COleControl and perform appropriate calls to your win32 app returning true/false if appropriate...

Regards

"...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..."
Me
GeneralRe: How to convert a non-mfc multithreading vc++6.0 win32sdk program to a mfc one ? Pin
suninwater11-Aug-03 19:59
suninwater11-Aug-03 19:59 
GeneralRe: How to convert a non-mfc multithreading vc++6.0 win32sdk program to a mfc one ? Pin
igor196011-Aug-03 20:26
igor196011-Aug-03 20:26 
GeneralRe: How to convert a non-mfc multithreading vc++6.0 win32sdk program to a mfc one ? Pin
suninwater11-Aug-03 21:01
suninwater11-Aug-03 21:01 
GeneralRe: How to convert a non-mfc multithreading vc++6.0 win32sdk program to a mfc one ? Pin
Steve S11-Aug-03 21:59
Steve S11-Aug-03 21:59 
GeneralRe: How to convert a non-mfc multithreading vc++6.0 win32sdk program to a mfc one ? Pin
suninwater11-Aug-03 22:48
suninwater11-Aug-03 22:48 
QuestionOnCtrlColor - how do I set a button fore color? Pin
michael thomas11-Aug-03 16:01
michael thomas11-Aug-03 16:01 
AnswerRe: OnCtrlColor - how do I set a button fore color? Pin
Ryan Binns11-Aug-03 20:04
Ryan Binns11-Aug-03 20:04 
GeneralRe: OnCtrlColor - how do I set a button fore color? Pin
michael thomas12-Aug-03 3:11
michael thomas12-Aug-03 3:11 
AnswerRe: OnCtrlColor - how do I set a button fore color? Pin
HPSI11-Aug-03 20:08
HPSI11-Aug-03 20:08 
GeneralRe: OnCtrlColor - how do I set a button fore color? Pin
michael thomas12-Aug-03 3:12
michael thomas12-Aug-03 3:12 
QuestionError "Recordset is read-only" ??? Pin
_skidrow_vn_11-Aug-03 15:56
_skidrow_vn_11-Aug-03 15:56 
GeneralHandling message in parent window Pin
bitpusher11-Aug-03 15:26
bitpusher11-Aug-03 15:26 
GeneralRe: Handling message in parent window Pin
HPSI11-Aug-03 20:38
HPSI11-Aug-03 20:38 
GeneralI get an error with writing a string Pin
Snyp11-Aug-03 15:14
Snyp11-Aug-03 15:14 
GeneralRe: I get an error with writing a string Pin
bitpusher11-Aug-03 15:30
bitpusher11-Aug-03 15:30 
GeneralRe: I get an error with writing a string Pin
David Crow12-Aug-03 2:39
David Crow12-Aug-03 2:39 
QuestionNM_RELEASEDCAPTURE/Spin Control? Pin
Kayembi11-Aug-03 14:44
Kayembi11-Aug-03 14:44 

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.