Click here to Skip to main content
15,924,935 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Printing Pin
Waldermort22-Mar-06 18:15
Waldermort22-Mar-06 18:15 
GeneralRe: Printing Pin
Hamid_RT23-Mar-06 23:44
Hamid_RT23-Mar-06 23:44 
Question[Message Deleted] Pin
zxc8922-Mar-06 2:25
zxc8922-Mar-06 2:25 
AnswerRe: How to Enable a submenu item in MDI Pin
Maximilien22-Mar-06 2:32
Maximilien22-Mar-06 2:32 
AnswerRe: How to Enable a submenu item in MDI Pin
bosfan22-Mar-06 2:45
bosfan22-Mar-06 2:45 
GeneralRe: How to Enable a submenu item in MDI Pin
bosfan22-Mar-06 3:11
bosfan22-Mar-06 3:11 
AnswerRe: How to Enable a submenu item in MDI Pin
Nibu babu thomas23-Mar-06 18:45
Nibu babu thomas23-Mar-06 18:45 
Questionedit subitems in listview Pin
mukri74322-Mar-06 2:21
mukri74322-Mar-06 2:21 
i have to create a list view where u can edit subitems.( non MFC one)

I refered the article by Mr.Zafir
http://www.codeguru.com/cpp/controls/listview/editingitemsandsubitem/article.php/c923/

i am unable to trace when the functions in the class(here: CInPlaceEdit) which is derived from the CEdit are invoked or called.

It has something like this... in the .h file

//{{AFX_MSG(CInPlaceEdit)
afx_msg void OnKillFocus(CWnd* pNewWnd);
afx_msg void OnNcDestroy();
afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
//}}AFX_MSG

DECLARE_MESSAGE_MAP()

in the .cpp file

BEGIN_MESSAGE_MAP(CInPlaceEdit, CEdit)
//{{AFX_MSG_MAP(CInPlaceEdit)
ON_WM_KILLFOCUS()
ON_WM_NCDESTROY()
ON_WM_CHAR()
ON_WM_CREATE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

as this is not valid in a non MFC one .. i used something like this. in the .h file

BEGIN_MSG_MAP(CInPlaceEdit)
MESSAGE_HANDLER(WM_NCDESTROY, OnNcDestroy)
MESSAGE_HANDLER(WM_KILLFOCUS, OnKillFocus)
MESSAGE_HANDLER(WM_CHAR, OnChar)
MESSAGE_HANDLER(WM_CREATE, OnCreate)
END_MSG_MAP()

LRESULT OnNcDestroy(UINT nMsg, WPARAM wParam, LPARAM lparam, BOOL& bHandled);
LRESULT OnKillFocus(UINT nMsg, WPARAM wParam, LPARAM lparam, BOOL& bHandled);
LRESULT OnChar(UINT nMsg, WPARAM wParam, LPARAM lparam, BOOL& bHandled);
LRESULT OnCreate(UINT nMsg, WPARAM wParam, LPARAM lparam, BOOL& bHandled);

what i want to know is how to call these functions or how to invoke them or
when are they called(from where).
right now they are not been called?
i am just able to create the edit control at a particular sub item location...

Plz Plz help me ragarding this..

Thank in advance.
AnswerRe: edit subitems in listview Pin
Waldermort22-Mar-06 4:16
Waldermort22-Mar-06 4:16 
Questiondata transfer. Pin
rajeev8222-Mar-06 2:02
rajeev8222-Mar-06 2:02 
GeneralRe: data transfer. Pin
Ștefan-Mihai MOGA22-Mar-06 2:39
professionalȘtefan-Mihai MOGA22-Mar-06 2:39 
AnswerRe: data transfer. Pin
basementman22-Mar-06 5:12
basementman22-Mar-06 5:12 
QuestionCDHTMLViewSpec related urgent!!! Pin
Shoaib Patel22-Mar-06 1:58
Shoaib Patel22-Mar-06 1:58 
QuestionCOleDateTime error in VS.NET 2003 ? Pin
irol22-Mar-06 1:36
professionalirol22-Mar-06 1:36 
AnswerRe: COleDateTime error in VS.NET 2003 ? Pin
RChin22-Mar-06 3:23
RChin22-Mar-06 3:23 
QuestionCHttpconnection Pin
vivek.s.vivek22-Mar-06 1:10
vivek.s.vivek22-Mar-06 1:10 
QuestionHow to get the status of a USB printer. Pin
ashwath200522-Mar-06 0:58
ashwath200522-Mar-06 0:58 
QuestionDisabling item in MENUBAR Pin
Killer322-Mar-06 0:25
Killer322-Mar-06 0:25 
AnswerRe: Disabling item in MENUBAR Pin
ashokbngr22-Mar-06 0:37
ashokbngr22-Mar-06 0:37 
AnswerRe: Disabling item in MENUBAR Pin
Nibu babu thomas22-Mar-06 0:54
Nibu babu thomas22-Mar-06 0:54 
GeneralRe: Disabling item in MENUBAR Pin
Killer322-Mar-06 2:33
Killer322-Mar-06 2:33 
GeneralRe: Disabling item in MENUBAR Pin
Ștefan-Mihai MOGA22-Mar-06 2:47
professionalȘtefan-Mihai MOGA22-Mar-06 2:47 
GeneralRe: Disabling item in MENUBAR Pin
Nibu babu thomas22-Mar-06 16:56
Nibu babu thomas22-Mar-06 16:56 
QuestionHigh CPU with Mouse Global Hook Pin
redfish3422-Mar-06 0:11
redfish3422-Mar-06 0:11 
QuestionNid help in getting list of URLS in a webpage/website Pin
SteelCrow21-Mar-06 23:50
SteelCrow21-Mar-06 23:50 

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.