Click here to Skip to main content
15,913,467 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Usage of reference Pin
Richard MacCutchan29-Mar-11 6:25
mveRichard MacCutchan29-Mar-11 6:25 
GeneralRe: Usage of reference Pin
Krishnakumartg29-Mar-11 6:30
Krishnakumartg29-Mar-11 6:30 
GeneralRe: Usage of reference Pin
Richard MacCutchan29-Mar-11 6:54
mveRichard MacCutchan29-Mar-11 6:54 
QuestionWhy more than one picture added into .doc file can't be seen but single can? [modified] Pin
whiteclouds24-Mar-11 21:47
whiteclouds24-Mar-11 21:47 
QuestionHow to replace a '%' character in CComBSTR with "%%" Pin
narayanagvs23-Mar-11 0:31
narayanagvs23-Mar-11 0:31 
AnswerRe: How to replace a '%' character in CComBSTR with "%%" [modified] Pin
Cool_Dev24-Mar-11 2:18
Cool_Dev24-Mar-11 2:18 
GeneralRe: How to replace a '%' character in CComBSTR with "%%" Pin
barneyman22-Apr-11 0:08
barneyman22-Apr-11 0:08 
RantRe: How to replace a '%' character in CComBSTR with "%%" Pin
Cool_Dev22-Apr-11 0:41
Cool_Dev22-Apr-11 0:41 
GeneralRe: How to replace a '%' character in CComBSTR with "%%" Pin
barneyman22-Apr-11 0:50
barneyman22-Apr-11 0:50 
Questionget focus on ActiveX control in MFC Dialog Pin
MrKBA22-Mar-11 0:01
MrKBA22-Mar-11 0:01 
Questionaccessing ActiveX array Pin
opti99921-Mar-11 23:33
opti99921-Mar-11 23:33 
AnswerRe: accessing ActiveX array Pin
Michael Dunn22-Mar-11 20:47
sitebuilderMichael Dunn22-Mar-11 20:47 
QuestionSinging COM Object Pin
Anders Molin21-Mar-11 2:31
professionalAnders Molin21-Mar-11 2:31 
AnswerRe: Singing COM Object Pin
Michael Dunn22-Mar-11 20:51
sitebuilderMichael Dunn22-Mar-11 20:51 
GeneralRe: Singing COM Object Pin
Anders Molin23-Mar-11 8:12
professionalAnders Molin23-Mar-11 8:12 
QuestionCreate my COM object from JScript Pin
Anders Molin21-Mar-11 2:29
professionalAnders Molin21-Mar-11 2:29 
QuestionHow to disable/enable the button on CommandBar in add-in application? Pin
whiteclouds17-Mar-11 22:13
whiteclouds17-Mar-11 22:13 
QuestionHow to get IDOK / IDCANCEL command message from an non-modal dialog set as client in CFrameWindowImpl? Pin
Philipp Kursawe11-Mar-11 2:46
Philipp Kursawe11-Mar-11 2:46 
QuestionRe: How to get IDOK / IDCANCEL command message from an non-modal dialog set as client in CFrameWindowImpl? [modified] Pin
Cool_Dev11-Mar-11 3:20
Cool_Dev11-Mar-11 3:20 
AnswerRe: How to get IDOK / IDCANCEL command message from an non-modal dialog set as client in CFrameWindowImpl? Pin
Alain Rist11-Mar-11 9:47
Alain Rist11-Mar-11 9:47 
GeneralRe: How to get IDOK / IDCANCEL command message from an non-modal dialog set as client in CFrameWindowImpl? Pin
Philipp Kursawe17-Mar-11 0:24
Philipp Kursawe17-Mar-11 0:24 
GeneralRe: How to get IDOK / IDCANCEL command message from an non-modal dialog set as client in CFrameWindowImpl? Pin
Alain Rist17-Mar-11 9:49
Alain Rist17-Mar-11 9:49 
QuestionUsing CContainedWindowT in a base class causes assert in conrete class Pin
Philipp Kursawe10-Mar-11 20:39
Philipp Kursawe10-Mar-11 20:39 
I have a base template class

template<class T, UINT titleId, int SortIndex, class WindowClass = ATL::CWindowImpl<T>>
class ATL_NO_VTABLE ITabPageImpl : public WindowClass {

BEGIN_MSG_MAP_EX(ITabPageImpl)
    MSG_WM_CREATE(onCreate)
    MSG_WM_DESTROY(onDestroy)

    REFLECT_NOTIFICATIONS_EX()

  ALT_MSG_MAP(1)
    NOTIFY_CODE_HANDLER_EX(LVN_DELETEITEM, onModifyTable)
END_MSG_MAP()

  ITabPageImpl() : _table(this, 1) {}

private:
  ATL::CContainedWindowT<WTL::CListViewCtrl> _table;


In the onCreate method I subclass a control, if the implementation provides a specific method:
__if_exists(T::getTableControl) {
  _table.SubclassWindow(static_cast<T*>(this)->getTableControl());
}


However, after subclassing the message loop of T produces an assertion when the subclassed control is supposed to process its first message.

The basic Idea is, that I want to put handling of certain messages in the base class and lift the burden on implementation classes.

Thanks for any help!
Happy coding,
Philipp Kursawe

AnswerRe: Using CContainedWindowT in a base class causes assert in conrete class Pin
Alain Rist11-Mar-11 10:13
Alain Rist11-Mar-11 10:13 
GeneralRe: Using CContainedWindowT in a base class causes assert in conrete class Pin
Philipp Kursawe13-Mar-11 11:14
Philipp Kursawe13-Mar-11 11:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.