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

C / C++ / MFC

 
QuestionHow do i format a number with digit grouping? Pin
Redeemer-dk7-Oct-02 6:17
Redeemer-dk7-Oct-02 6:17 
AnswerRe: How do i format a number with digit grouping? Pin
Chris Richardson7-Oct-02 6:44
Chris Richardson7-Oct-02 6:44 
GeneralCTreeCtrl trouble Pin
google_4477-Oct-02 5:56
sussgoogle_4477-Oct-02 5:56 
GeneralRe: CTreeCtrl trouble Pin
Ravi Bhavnani7-Oct-02 6:18
professionalRavi Bhavnani7-Oct-02 6:18 
GeneralGrid will not scroll Pin
Shay Harel7-Oct-02 5:46
Shay Harel7-Oct-02 5:46 
GeneralProblems with ranges in Excel Pin
Anonymous7-Oct-02 5:37
Anonymous7-Oct-02 5:37 
GeneralMFC Sockets design question Pin
User 66587-Oct-02 5:32
User 66587-Oct-02 5:32 
GeneralW2K vs Win9X child window creation w/ menu Pin
Tony Teveris7-Oct-02 4:48
Tony Teveris7-Oct-02 4:48 
I'm having problems with the window generation of the following code on a Win9x system.

The window is a "child" window that contain a menu and is allowed to be anywhere on the screen, it's not contain
by the parent window. On a win9x system when the window first appears the menu is present but can not be
activated. It seems that is is just drawn and thats it. If I force a redraw the menu goes away entirely.

On a W2K system the menu appears, is active and the entire function of of the window works fine.

I must be missing something ?

Thanks in advance
Tony Teveris

<br />
int iCaptionHite = GetSystemMetrics(SM_CYSIZE) + GetSystemMetrics(SM_CYFRAME);<br />
<br />
CMenu *pMenu = new CMenu;<br />
pMenu->LoadMenu(IDR_VIEW);<br />
 <br />
pFW->CreateEx(WS_EX_WINDOWEDGE,<br />
AfxRegisterWndClass(CS_HREDRAW | CS_VREDRAW, AfxGetApp()->LoadStandardCursor(IDC_ARROW),0,AfxGetApp()->LoadIcon(IDI_FONTVIEW)),<br />
	"My Test",<br />
	WS_OVERLAPPEDWINDOW | WS_POPUPWINDOW | WS_CAPTION | /*WS_SYSMENU  |*/ WS_THICKFRAME | 			WS_VISIBLE /*| WS_HSCROLL | WS_VSCROLL*/,<br />
	iCaptionHite, iCaptionHite, GetSystemMetrics(SM_CXSCREEN)/3, GetSystemMetrics(SM_CYSCREEN)/3, 			m_pOwner->GetSafeHwnd(), pMenu->GetSafeHmenu(), NULL);<br />
<br />
delete pMenu;<br />
<br />
pFW->UpdateWindow();


Tony Teveris
Gerber Scientific Products
Senior Software Engineer
Phone: 860 648 8151
Fax: 860 648 8214
83 Gerber Road West
South Windsor, CT 06074
Generalprocess handle to window HWND Pin
Liorsh7-Oct-02 4:34
Liorsh7-Oct-02 4:34 
GeneralRe: process handle to window HWND Pin
Iain Clarke, Warrior Programmer7-Oct-02 5:35
Iain Clarke, Warrior Programmer7-Oct-02 5:35 
GeneralAdding streams and files into MSWord compound file Pin
Mariusz Popiolek7-Oct-02 4:19
sussMariusz Popiolek7-Oct-02 4:19 
QuestionHDROP??? Pin
Nitron7-Oct-02 4:19
Nitron7-Oct-02 4:19 
AnswerRe: HDROP??? Pin
jmkhael7-Oct-02 4:26
jmkhael7-Oct-02 4:26 
AnswerRe: HDROP??? Pin
Michael Dunn7-Oct-02 4:28
sitebuilderMichael Dunn7-Oct-02 4:28 
AnswerRe: HDROP??? Pin
Ravi Bhavnani7-Oct-02 4:34
professionalRavi Bhavnani7-Oct-02 4:34 
AnswerThanx! Pin
Nitron7-Oct-02 4:37
Nitron7-Oct-02 4:37 
Generalstatic function question Pin
ns7-Oct-02 3:39
ns7-Oct-02 3:39 
GeneralRe: static function question Pin
Chris Losinger7-Oct-02 3:39
professionalChris Losinger7-Oct-02 3:39 
Generalanother static member question Pin
ns7-Oct-02 3:45
ns7-Oct-02 3:45 
GeneralRe: another static member question Pin
Ravi Bhavnani7-Oct-02 4:32
professionalRavi Bhavnani7-Oct-02 4:32 
QuestionPowerPoint 2002 Automation, anyone tried ? Pin
Braulio Dez7-Oct-02 3:14
Braulio Dez7-Oct-02 3:14 
AnswerRe: PowerPoint 2002 Automation, anyone tried ? Pin
jmkhael7-Oct-02 5:18
jmkhael7-Oct-02 5:18 
GeneralRe: PowerPoint 2002 Automation, anyone tried ? Pin
Braulio Dez7-Oct-02 5:50
Braulio Dez7-Oct-02 5:50 
Questionhow to simulate the terrians? Pin
wangnanjing7-Oct-02 3:16
wangnanjing7-Oct-02 3:16 
AnswerRe: how to simulate the terrians? Pin
Chris Richardson7-Oct-02 6:48
Chris Richardson7-Oct-02 6:48 

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.