Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
Solidgraph.h
Package: solidgraph_sources.zip [view]
Upload User: kairuinn
Upload Date: 2009-02-07
Package Size: 2922k
Code Size: 2k
Category:
Graph program
Development Platform:
Visual C++
- // Solidgraph.h : main header file for the Solidgraph application
- //
- #pragma once
- #ifndef __AFXWIN_H__
- #error include 'stdafx.h' before including this file for PCH
- #endif
- #include "resource.h" // main symbols
- // CSolidgraphApp:
- // See Solidgraph.cpp for the implementation of this class
- //
- #include "ReportEditor/DiagramEditor/DiagramClipboardHandler.h"
- #include "PluginsClasses//PluginLoader.h"
- #include "Dialogs//SceneTreeDlg.h"
- #include "Tools//RegManager.h"
- class CSolidgraphApp : public CWinApp,
- public ICoreAppInterface
- {
- public:
- CSolidgraphApp();
- ~CSolidgraphApp();
- CGlobalTree* m_main_tree_control;
- CPluginLoader* m_main_pluginer;
- CRegisterManager* m_reg_manager;
- // Overrides
- public:
- virtual IProgresser* GetProgresser();
- virtual ISceneTreeControl* GetSceneTreeControl();
- CDiagramClipboardHandler m_clip;
- virtual BOOL InitInstance();
- private:
- std::vector<CString> m_FontsPathsArray;
- CString m_application_Path;
- void GetFontFiles(CString sPath);
- // Implementation
- afx_msg void OnAppAbout();
- DECLARE_MESSAGE_MAP()
- virtual int ExitInstance();
- virtual BOOL PreTranslateMessage(MSG* pMsg);
- public:
- void GetAppPath(CString& aa) {aa=m_application_Path;};
- };
- extern CSolidgraphApp theApp;
- extern ICommander* global_commander;
- extern bool translate_messages_through_app;
- extern int group_name_index;
- class AppDllInstanceSwitcher
- {
- public:
- AppDllInstanceSwitcher()
- {
- m_hInst = AfxGetResourceHandle();
- AfxSetResourceHandle(theApp.m_hInstance);
- }
- ~AppDllInstanceSwitcher()
- {
- AfxSetResourceHandle(m_hInst);
- }
- private:
- HINSTANCE m_hInst;
- };
- #define APP_SWITCH_RESOURCE AppDllInstanceSwitcher __SwitchInstance;
- sgCObject* GetObjectTopParent(const sgCObject* ob);
- CRect FitFirstRectToSecond(CSize& fitSz, CRect& windRect);
- CString GetLeftHalfOfString(UINT nID);
- void DrawGroupFrame(CDC* pDC, const CRect& rct,
- const int leftLab, const int rightLab);