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
GuiDockContext.h
Package: sourcecode.zip [view]
Upload User: wlkj888
Upload Date: 2022-08-01
Package Size: 806k
Code Size: 2k
Category:
Dialog_Window
Development Platform:
Visual C++
- /****************************************************************************
- * *
- * GuiToolKit *
- * (MFC extension) *
- * Created by Francisco Campos G. www.beyondata.com fcampos@beyondata.com *
- *--------------------------------------------------------------------------*
- * *
- * This program is free software; so you are free to use it any of your *
- * applications(Freeware, Shareware, Commercial), but leave this header *
- * intact. *
- * *
- * These files are provided "as is" without warranty of any kind. *
- * *
- * GuiToolKit is forever FREE CODE !!!!! *
- * *
- *--------------------------------------------------------------------------*
- * Created by: Francisco Campos G. *
- * Bug Fixes and improvements :(Add your name) *
- * -Francisco Campos *
- * *
- ****************************************************************************/
- #if !defined(AFX_GUIDOCKCONTEXT_H__B30C848F_0A82_46A1_BAE2_E2C73CE5C2BB__INCLUDED_)
- #define AFX_GUIDOCKCONTEXT_H__B30C848F_0A82_46A1_BAE2_E2C73CE5C2BB__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class GUILIBDLLEXPORT CGuiDockContext: public CDockContext
- {
- public:
- // Construction
- CGuiDockContext(CControlBar* pBar);
- // Attributes
- virtual void StartDrag(CPoint pt);
- void Move(CPoint pt); // called when mouse has moved
- void EndDrag(); // drop
- void OnKey(int nChar, BOOL bDown);
- void AdjustWindowForFloat(CRect& rect);
- // Resize Operations
- virtual void StartResize(int nHitTest, CPoint pt);
- void Stretch(CPoint pt);
- void EndResize();
- int VerLeft(int i, int nSize, CDockBar* pDockBar, CControlBar* pBar);
- int VerRight(int i, int nSize, CDockBar* pDockBar, CControlBar* pBar);
- // Double Click Operations
- virtual void ToggleDocking();
- // Operations
- void InitLoop();
- void CancelLoop();
- DWORD CanDock(CRect rect, DWORD dwDockStyle,
- CDockBar** ppDockBar = NULL); // called
- // Implementation
- public:
- ~CGuiDockContext();
- BOOL Track();
- BOOL bFirstClic;
- BOOL bSecondClic;
- void DrawFocusRect(BOOL bRemoveRect = FALSE);
- // draws the correct outline
- void UpdateState(BOOL* pFlag, BOOL bNewValue);
- DWORD CanDock();
- CDockBar* GetDockBar(DWORD dwOverDockStyle);
- };
- #endif // !defined(AFX_GUIDOCKCONTEXT_H__B30C848F_0A82_46A1_BAE2_E2C73CE5C2BB__INCLUDED_)