Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

LCommander Class Reference
["Commanders"]

#include <LCommander.h>

Inheritance diagram for LCommander:

Inheritance graph
[legend]
Collaboration diagram for LCommander:

Collaboration graph
[legend]
List of all members.

Detailed Description

Make CCmdTarget look like LCommander interface of PowerPlant.

we make this a mixin as it is inserted effectively in parallel to the MFC CDialog in one case, where ideally it should be a parent to that class. Thus, it needs to have a pointer to a CCmdTarget of which it would normally be an instance.


PowerPlant-compatible message handling

virtual Boolean ObeyCommand (CommandT, void *ioParam=nil)
virtual Boolean ProcessCommand (CommandT, void *ioParam=nil)
virtual LCommander * GetSuperCommander ()
LCommander * GetTopCommander ()

Public Methods

 LCommander (CWnd *inTarget, LCommander *inSuper=0)
virtual ~LCommander ()
virtual BOOL OnCommandRedirector (WPARAM wParam, LPARAM lParam)
BOOL OnWndMsgRedirector (UINT message, WPARAM wParam, LPARAM lParam, LRESULT *pResult)
virtual LPanefindCurrentPane () const
void overrideMFCmessage (MessageT, CWnd *fromWnd)
void overrideMFCmessage (MessageT, short inWindowsMsg)
virtual Boolean matchesHWND (HWND) const
virtual LPCSTR runtimeClassName ()
CWndtarget () const
bool hasMessageRemapping () const
BOOL isLatent () const
PowerPlant-compatible menu enabling
virtual void FindCommandStatus (CommandT, Boolean &outEnabled, Boolean &outUsesMark, Char16 &outMark, Str255 outName)

Static Public Methods

BOOL FrontmostOnCommand (WPARAM wParam, LPARAM lParam)
BOOL FrontmostOnWndMsg (UINT message, WPARAM wParam, LPARAM lParam, LRESULT *pResult)
Boolean IsSyntheticCommand (CommandT, ResIDT &outMenuID, Int16 &outMenuItem)

Protected Methods

void MaybeRemapMessage (CommandT &ioCommand)
void ActivateCommander ()
void DeactivateCommander ()
void BecomeFrontmost ()
void BecomeLatent ()
void AddSubCommander (LCommander *inSub)
void RemoveSubCommander (LCommander *inSub)

Protected Attributes

CWndmTarget
LCommander * mSuperCommander
p2mMessageReMapmMessageReMap
p2mCommanderStackmSubCommanders
BOOL mLatent

Static Protected Attributes

p2mCommanderStack sLatentStack
 declare this static here as need to encounter definition above

LCommander * sFrontmostCommander = 0
HWND sForeignWnd = 0


Constructor & Destructor Documentation

LCommander::LCommander CWnd   inTarget,
LCommander *    inSuper = 0
 

LCommander::~LCommander   [virtual]
 


Member Function Documentation

void LCommander::ActivateCommander   [protected]
 

void LCommander::AddSubCommander LCommander *    inSub [protected]
 

void LCommander::BecomeFrontmost   [protected]
 

void LCommander::BecomeLatent   [protected]
 

void LCommander::DeactivateCommander   [protected]
 

void LCommander::FindCommandStatus CommandT   ,
Boolean   outEnabled,
Boolean   outUsesMark,
Char16 &    outMark,
Str255    outName
[virtual]
 

Reimplemented in LWindow, p2mFrameWnd, and p2mMDIFrameWnd.

LPane * LCommander::findCurrentPane   const [virtual]
 

Reimplemented in LWindow.

BOOL LCommander::FrontmostOnCommand WPARAM    wParam,
LPARAM    lParam
[static]
 

BOOL LCommander::FrontmostOnWndMsg UINT    message,
WPARAM    wParam,
LPARAM    lParam,
LRESULT *    pResult
[static]
 

LCommander * LCommander::GetSuperCommander   [virtual]
 

LCommander* LCommander::GetTopCommander   [inline, static]
 

bool LCommander::hasMessageRemapping   const [inline]
 

BOOL LCommander::isLatent   const [inline]
 

Boolean LCommander::IsSyntheticCommand CommandT   ,
ResIDT   outMenuID,
Int16 &    outMenuItem
[static]
 

Boolean LCommander::matchesHWND HWND    const [virtual]
 

Reimplemented in LWindow.

void LCommander::MaybeRemapMessage CommandT   ioCommand [protected]
 

Boolean LCommander::ObeyCommand CommandT   ,
void *    ioParam = nil
[virtual]
 

BOOL LCommander::OnCommandRedirector WPARAM    wParam,
LPARAM    lParam
[virtual]
 

Reimplemented in LWindow.

BOOL LCommander::OnWndMsgRedirector UINT    message,
WPARAM    wParam,
LPARAM    lParam,
LRESULT *    pResult
 

void LCommander::overrideMFCmessage MessageT   ,
short    inWindowsMsg
 

void LCommander::overrideMFCmessage MessageT   ,
CWnd   fromWnd
 

Boolean LCommander::ProcessCommand CommandT   ,
void *    ioParam = nil
[virtual]
 

void LCommander::RemoveSubCommander LCommander *    inSub [protected]
 

LPCSTR LCommander::runtimeClassName   [virtual]
 

Reimplemented in LWindow.

CWnd* LCommander::target   const [inline]
 


Member Data Documentation

BOOL LCommander::mLatent [protected]
 

p2mMessageReMap* LCommander::mMessageReMap [protected]
 

p2mCommanderStack* LCommander::mSubCommanders [protected]
 

LCommander* LCommander::mSuperCommander [protected]
 

CWnd* LCommander::mTarget [protected]
 

HWND LCommander::sForeignWnd = 0 [static, protected]
 

LCommander * LCommander::sFrontmostCommander = 0 [static, protected]
 

p2mCommanderStack LCommander::sLatentStack [static, protected]
 

declare this static here as need to encounter definition above


The documentation for this class was generated from the following files:
Generated on Mon Jul 22 18:20:50 2002 for PP2MFC by doxygen1.2.17