Link to home
Start Free TrialLog in
Avatar of Johnny123
Johnny123

asked on

HOW TO: MDI Application look like KAZAA?

I'd like to write Monopoly Game -> MFC App (must be MDI) and i think the best interface would be something like Kazaa.
The question is: How can i do that?
Avatar of Johnny123
Johnny123

ASKER

By the way I am using Microsoft Visual Studio .NET 2003
Please explain what features of Kazaa do you want?
Are you talkin about a on-line game or just a desktop game?
I am talking about the look. My game will be online. And i'd like to have 3 or 4 pages like in Kazaa.
1)the game
2)game server settings
3)chat
4)avaible servers

and for example Kazaa has Main Page, Theatre, Search, Transfer...

I want every frame to be maximized and move through pages with nice toolbar above. No maximize, minimize button on the top of the page like in typicall MDI app created with wizard. Don't want my app to look like Word or Excel. Only app has the buttons to max., min. and close.
I think you need this:
http://www.codeproject.com/docview/mditab.asp

Just have eliminate WS_MAXIMIZEBOX and WS_MINIMIZEBOX styles from windows.

I think that's the one i am looking for but when i try to build the demo project there are 12 errors (all about Demo.pch):

WindowTabCtrl.cpp
WindowTabCtrl.cpp(4) : fatal error C1083: Cannot open precompiled header file: '.\AlphaDbg/Demo.pch': No such file or directory
WindowManager.cpp
WindowManager.cpp(1) : fatal error C1083: Cannot open precompiled header file: '.\AlphaDbg/Demo.pch': No such file or directory
ViewManager.cpp
ViewManager.cpp(4) : fatal error C1083: Cannot open precompiled header file: '.\AlphaDbg/Demo.pch': No such file or directory
StdAfx.cpp
StdAfx.cpp(5) : fatal error C1083: Cannot open precompiled header file: '.\AlphaDbg/Demo.pch': No such file or directory
PopupMenu.cpp
PopupMenu.cpp(5) : fatal error C1083: Cannot open precompiled header file: '.\AlphaDbg/Demo.pch': No such file or directory
MainFrm.cpp
MainFrm.cpp(4) : fatal error C1083: Cannot open precompiled header file: '.\AlphaDbg/Demo.pch': No such file or directory
DemoView.cpp
DemoView.cpp(4) : fatal error C1083: Cannot open precompiled header file: '.\AlphaDbg/Demo.pch': No such file or directory
DemoPropertySheet.cpp
DemoPropertySheet.cpp(4) : fatal error C1083: Cannot open precompiled header file: '.\AlphaDbg/Demo.pch': No such file or directory
DemoPropertyPage.cpp
DemoPropertyPage.cpp(4) : fatal error C1083: Cannot open precompiled header file: '.\AlphaDbg/Demo.pch': No such file or directory
DemoDoc.cpp
DemoDoc.cpp(4) : fatal error C1083: Cannot open precompiled header file: '.\AlphaDbg/Demo.pch': No such file or directory
Demo.cpp
Demo.cpp(4) : fatal error C1083: Cannot open precompiled header file: '.\AlphaDbg/Demo.pch': No such file or directory
ChildFrm.cpp
ChildFrm.cpp(4) : fatal error C1083: Cannot open precompiled header file: '.\AlphaDbg/Demo.pch': No such file or directory

what can i do to build it right?
Try with "rebuild all"
i tried that. it doesn't help.
when i try to only link the project it says:
Linking...
LINK : fatal error LNK1181: cannot open input file '.\AlphaDbg\ChildFrm.obj'
is this information any helpful?
Dont have VC 2003, so I will give a generic solution:
Go to your Project Settings Window
Search for the C++ options -> Precompiled headers
Choose automatic use of precompiled headers.
I know I am really anoying but that's the last one. If i comment it like that the app starts and everything works but without it there is an error - problem with static cast.

BEGIN_MESSAGE_MAP(CViewManager, CCBaseControlBar)
      //{{AFX_MSG_MAP(CViewManager)
      ON_WM_SIZE()
      ON_WM_CREATE()
      ON_WM_RBUTTONDOWN()
      ON_WM_WINDOWPOSCHANGING()
      ON_WM_WINDOWPOSCHANGED()
      //}}AFX_MSG_MAP
      //ON_NOTIFY(TTN_NEEDTEXT, 0, OnViewManagerToolTip)  //this is the problem
END_MESSAGE_MAP()

mditab_demo\Demo\ViewManager.cpp(64): error C2440: 'static_cast' : cannot convert from 'BOOL (__thiscall CViewManager::* )(NMHDR *,LRESULT *)' to 'void (__thiscall CCmdTarget::* )(NMHDR *,LRESULT *)'

thank you for all your help
i am increasing the points to show you how helpful you were
and sorry for my poor english :)
ASKER CERTIFIED SOLUTION
Avatar of Jaime Olivares
Jaime Olivares
Flag of Peru image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial