Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 287
  • Last Modified:

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?
0
Johnny123
Asked:
Johnny123
  • 5
  • 5
1 Solution
 
Johnny123Author Commented:
By the way I am using Microsoft Visual Studio .NET 2003
0
 
Jaime OlivaresSoftware ArchitectCommented:
Please explain what features of Kazaa do you want?
Are you talkin about a on-line game or just a desktop game?
0
 
Johnny123Author Commented:
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.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Jaime OlivaresSoftware ArchitectCommented:
I think you need this:
http://www.codeproject.com/docview/mditab.asp

Just have eliminate WS_MAXIMIZEBOX and WS_MINIMIZEBOX styles from windows.

0
 
Johnny123Author Commented:
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?
0
 
Jaime OlivaresSoftware ArchitectCommented:
Try with "rebuild all"
0
 
Johnny123Author Commented:
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?
0
 
Jaime OlivaresSoftware ArchitectCommented:
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.
0
 
Johnny123Author Commented:
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 :)
0
 
Jaime OlivaresSoftware ArchitectCommented:
ensure OnViewManagerToolTip is declared as returning void

void OnViewManagerToolTip(....etcetera...)
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 5
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now