CBCGPProp PushChar event not work
-
Hello all members, I have this problem : public CSelBCGProp : public CBCGPProp { ... public: virtual BOOL PushChar (UINT nChar); .. } I created a class CSelBCGProp that inherits from CBCGPProp I added the event PushChar that lets run a piece of code when the user types a character. (this may be known by all members ) But the problem is that this event does not fire, while the other events that are triggered!! have you an idea on this case please
-
Hello all members, I have this problem : public CSelBCGProp : public CBCGPProp { ... public: virtual BOOL PushChar (UINT nChar); .. } I created a class CSelBCGProp that inherits from CBCGPProp I added the event PushChar that lets run a piece of code when the user types a character. (this may be known by all members ) But the problem is that this event does not fire, while the other events that are triggered!! have you an idea on this case please
How we can guess the cause with the code you provided? :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Hello all members, I have this problem : public CSelBCGProp : public CBCGPProp { ... public: virtual BOOL PushChar (UINT nChar); .. } I created a class CSelBCGProp that inherits from CBCGPProp I added the event PushChar that lets run a piece of code when the user types a character. (this may be known by all members ) But the problem is that this event does not fire, while the other events that are triggered!! have you an idea on this case please
1.) Please post the class definition of
CBCGPProp
, 0.) if the event can be catched on its (CBCGPProp
) level :)virtual void BeHappy() = 0;
-
1.) Please post the class definition of
CBCGPProp
, 0.) if the event can be catched on its (CBCGPProp
) level :)virtual void BeHappy() = 0;
The class CBCGPProp is a standard class (delivered with BCGTool) and it seems like this: class BCGCBPRODLLEXPORT CBCGPProp : public CObject { DECLARE_DYNAMIC(CBCGPProp) friend class CBCGPPropList; // Construction public: // Group constructor CBCGPProp(const CString& strGroupName, DWORD_PTR dwData = 0, BOOL bIsValueList = FALSE); // Simple property CBCGPProp(const CString& strName, const _variant_t& varValue, LPCTSTR lpszDescr = NULL, DWORD_PTR dwData = 0, LPCTSTR lpszEditMask = NULL, LPCTSTR lpszEditTemplate = NULL, LPCTSTR lpszValidChars = NULL); virtual ~CBCGPProp(); enum ClickArea { ClickExpandBox, ClickName, ClickValue, ClickDescription }; // Operations: public: int GetExpandedSubItems (BOOL bIncludeHidden = TRUE) const; BOOL AddSubItem (CBCGPProp* pProp); BOOL RemoveSubItem (CBCGPProp*& pProp, BOOL bDelete = TRUE); . . . public: virtual BOOL OnEndEdit (); virtual void OnClickButton (CPoint point); virtual BOOL OnClickValue (UINT uiMsg, CPoint point); virtual BOOL OnDblClick (CPoint point); virtual void OnSelectCombo (); virtual void OnCloseCombo(); virtual BOOL OnSetCursor () const; virtual BOOL PushChar (UINT nChar); ...} in my CSelBCGProp.cpp it seems like this : BOOL CSelBCGProp::PushChar (UINT nChar) { nChar; return true; } What i need is to know the character that the user enter it and make a treatment on it.
-
How we can guess the cause with the code you provided? :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]The class CBCGPProp is a standard class (delivered with BCGTool) and it seems like this: class BCGCBPRODLLEXPORT CBCGPProp : public CObject { DECLARE_DYNAMIC(CBCGPProp) friend class CBCGPPropList; // Construction public: // Group constructor CBCGPProp(const CString& strGroupName, DWORD_PTR dwData = 0, BOOL bIsValueList = FALSE); // Simple property CBCGPProp(const CString& strName, const _variant_t& varValue, LPCTSTR lpszDescr = NULL, DWORD_PTR dwData = 0, LPCTSTR lpszEditMask = NULL, LPCTSTR lpszEditTemplate = NULL, LPCTSTR lpszValidChars = NULL); virtual ~CBCGPProp(); enum ClickArea { ClickExpandBox, ClickName, ClickValue, ClickDescription }; // Operations: public: int GetExpandedSubItems (BOOL bIncludeHidden = TRUE) const; BOOL AddSubItem (CBCGPProp* pProp); BOOL RemoveSubItem (CBCGPProp*& pProp, BOOL bDelete = TRUE); . . . public: virtual BOOL OnEndEdit (); virtual void OnClickButton (CPoint point); virtual BOOL OnClickValue (UINT uiMsg, CPoint point); virtual BOOL OnDblClick (CPoint point); virtual void OnSelectCombo (); virtual void OnCloseCombo(); virtual BOOL OnSetCursor () const; virtual BOOL PushChar (UINT nChar); ...} in my CSelBCGProp.cpp it seems like this : BOOL CSelBCGProp::PushChar (UINT nChar) { nChar; return true; } What i need is to know the character that the user enter it and make a treatment on it.
-
The class CBCGPProp is a standard class (delivered with BCGTool) and it seems like this: class BCGCBPRODLLEXPORT CBCGPProp : public CObject { DECLARE_DYNAMIC(CBCGPProp) friend class CBCGPPropList; // Construction public: // Group constructor CBCGPProp(const CString& strGroupName, DWORD_PTR dwData = 0, BOOL bIsValueList = FALSE); // Simple property CBCGPProp(const CString& strName, const _variant_t& varValue, LPCTSTR lpszDescr = NULL, DWORD_PTR dwData = 0, LPCTSTR lpszEditMask = NULL, LPCTSTR lpszEditTemplate = NULL, LPCTSTR lpszValidChars = NULL); virtual ~CBCGPProp(); enum ClickArea { ClickExpandBox, ClickName, ClickValue, ClickDescription }; // Operations: public: int GetExpandedSubItems (BOOL bIncludeHidden = TRUE) const; BOOL AddSubItem (CBCGPProp* pProp); BOOL RemoveSubItem (CBCGPProp*& pProp, BOOL bDelete = TRUE); . . . public: virtual BOOL OnEndEdit (); virtual void OnClickButton (CPoint point); virtual BOOL OnClickValue (UINT uiMsg, CPoint point); virtual BOOL OnDblClick (CPoint point); virtual void OnSelectCombo (); virtual void OnCloseCombo(); virtual BOOL OnSetCursor () const; virtual BOOL PushChar (UINT nChar); ...} in my CSelBCGProp.cpp it seems like this : BOOL CSelBCGProp::PushChar (UINT nChar) { nChar; return true; } What i need is to know the character that the user enter it and make a treatment on it.
Please set a breakpoint in the body of
**CBCGPProp**::PushChar(..)
: can you get a stop there ? :)virtual void BeHappy() = 0;
-
How we can guess the cause with the code you provided? :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]Mr palini your cutout is a fuse it seems. I was just going through the forum and saw that palini doesn ot answer quesitns but rather makes a joke of the people. this is a forum to discuss and not boast around. get out if you do not wish to help people out here.
-
Mr palini your cutout is a fuse it seems. I was just going through the forum and saw that palini doesn ot answer quesitns but rather makes a joke of the people. this is a forum to discuss and not boast around. get out if you do not wish to help people out here.
tom groezer wrote:
Mr palini
is Pallini. Are you able to guess the error just examining the provided code? :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Please set a breakpoint in the body of
**CBCGPProp**::PushChar(..)
: can you get a stop there ? :)virtual void BeHappy() = 0;
-
tom groezer wrote:
Mr palini
is Pallini. Are you able to guess the error just examining the provided code? :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]CPallini wrote:
Are you able to guess the error just examining the provided code?
Nah, he's too busy not Googling the answer to his own problem. :sigh:
You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.