Click here to Skip to main content
15,890,512 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
QuestionATL Object Wizard got lost??? Pin
Dominik Reichl14-Jun-03 22:37
Dominik Reichl14-Jun-03 22:37 
AnswerRe: ATL Object Wizard got lost??? Pin
Thomas Lau15-Jun-03 23:10
Thomas Lau15-Jun-03 23:10 
AnswerRe: ATL Object Wizard got lost??? Pin
Hans Ruck16-Jun-03 2:13
Hans Ruck16-Jun-03 2:13 
GeneralRe: ATL Object Wizard got lost??? Pin
Dominik Reichl16-Jun-03 6:45
Dominik Reichl16-Jun-03 6:45 
AnswerRe: ATL Object Wizard got lost??? Pin
Renjith Ramachandran22-Jun-03 19:53
Renjith Ramachandran22-Jun-03 19:53 
GeneralSubclassed Listview not sending any notifications... Pin
Tommy2k14-Jun-03 6:36
Tommy2k14-Jun-03 6:36 
GeneralRe: Subclassed Listview not sending any notifications... Pin
João Paulo Figueira14-Jun-03 6:56
professionalJoão Paulo Figueira14-Jun-03 6:56 
GeneralRe: Subclassed Listview not sending any notifications... Pin
Tommy2k14-Jun-03 8:27
Tommy2k14-Jun-03 8:27 
class CContactlist : public CWindowImpl<ccontactlist, clistviewctrl="">
{
private:
CImageList ContactImageList;
TimContact TimContactlist[256];
int NumberOfContactsLoaded;

CStatic tHyperlink;
CAnimateCtrl tAnim;
int colormsg;
CFont hLinkFont,hLinkFont2;

public:
DECLARE_WND_SUPERCLASS(NULL, CListViewCtrl::GetWndClassName())
BOOL PreTranslateMessage(MSG* pMsg);

BEGIN_MSG_MAP(CContactlist)
MESSAGE_HANDLER(WM_CREATE, OnCreate)
MESSAGE_HANDLER(WM_SETCURSOR, OnSetCursor)
MESSAGE_HANDLER(WM_CTLCOLORSTATIC,OnCtrlColorStatic)
MESSAGE_HANDLER(WM_CONTEXTMENU,OnContextMenu)
NOTIFY_CODE_HANDLER(NM_CLICK,OnActivateItem)

END_MSG_MAP()

friend class CTimUser;

CContactlist();
~CContactlist();

void Setup();
void OnParentSize(HWND hWndParent);
BOOL LoadImagelist();

void ShowCancelLogin(bool show);

void AddContactToList(CAtlString * Username, CAtlString * Email, CAtlString * Nickname, int Status, bool Blocked);

protected:
// Handler prototypes (uncomment arguments if needed):
// LRESULT MessageHandler(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
// LRESULT CommandHandler(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
// LRESULT NotifyHandler(int /*idCtrl*/, LPNMHDR /*pnmh*/, BOOL& /*bHandled*/)
LRESULT OnSetCursor(UINT /*uMsg*/, WPARAM wParam, LPARAM lParam, BOOL& /*bHandled*/);
LRESULT OnCreate(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& bHandled);
LRESULT OnCtrlColorStatic(UINT /*uMsg*/, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
LRESULT OnContextMenu(UINT /*uMsg*/, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
LRESULT OnActivateItem(int idCtrl, LPNMHDR pnmh, BOOL& bHandled)
{
MessageBox("blah");
return 0;
}

};



It's the CLICK one that doesn't work...

Thnx
GeneralRe: Subclassed Listview not sending any notifications... Pin
João Paulo Figueira14-Jun-03 8:45
professionalJoão Paulo Figueira14-Jun-03 8:45 
GeneralRe: Subclassed Listview not sending any notifications... Pin
Tommy2k14-Jun-03 23:27
Tommy2k14-Jun-03 23:27 
GeneralRe: Subclassed Listview not sending any notifications... Pin
João Paulo Figueira14-Jun-03 23:39
professionalJoão Paulo Figueira14-Jun-03 23:39 
GeneralRe: Subclassed Listview not sending any notifications... Pin
Tommy2k15-Jun-03 0:21
Tommy2k15-Jun-03 0:21 
GeneralRe: Subclassed Listview not sending any notifications... Pin
João Paulo Figueira15-Jun-03 0:33
professionalJoão Paulo Figueira15-Jun-03 0:33 
GeneralRe: Subclassed Listview not sending any notifications... Pin
Tommy2k15-Jun-03 0:52
Tommy2k15-Jun-03 0:52 
GeneralRe: Subclassed Listview not sending any notifications... Pin
João Paulo Figueira15-Jun-03 1:19
professionalJoão Paulo Figueira15-Jun-03 1:19 
GeneralRe: Subclassed Listview not sending any notifications... Pin
Tommy2k15-Jun-03 2:23
Tommy2k15-Jun-03 2:23 
GeneralRe: Subclassed Listview not sending any notifications... Pin
João Paulo Figueira15-Jun-03 5:11
professionalJoão Paulo Figueira15-Jun-03 5:11 
QuestionActiveX Excel? Pin
Mardigin12-Jun-03 6:09
Mardigin12-Jun-03 6:09 
AnswerRe: ActiveX Excel? Pin
Michael P Butler15-Jun-03 3:49
Michael P Butler15-Jun-03 3:49 
GeneralRe: ActiveX Excel? Pin
Mardigin15-Jun-03 9:41
Mardigin15-Jun-03 9:41 
GeneralDeleting items from a deque Pin
Steve Thresher11-Jun-03 23:09
Steve Thresher11-Jun-03 23:09 
GeneralRe: Deleting items from a deque Pin
Andrew Walker11-Jun-03 23:55
Andrew Walker11-Jun-03 23:55 
GeneralRe: Deleting items from a deque Pin
Steve Thresher12-Jun-03 0:24
Steve Thresher12-Jun-03 0:24 
GeneralRe: Deleting items from a deque Pin
Neville Franks13-Jun-03 12:44
Neville Franks13-Jun-03 12:44 
GeneralAlignment property on ATL control Pin
john.angel11-Jun-03 6:20
john.angel11-Jun-03 6:20 

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.