Click here to Skip to main content
15,917,061 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Dumb question... Copying derived class from base class pointer Pin
Nish Nishant13-Oct-02 4:23
sitebuilderNish Nishant13-Oct-02 4:23 
GeneralRe: Dumb question... Copying derived class from base class pointer Pin
Joaquín M López Muñoz13-Oct-02 4:29
Joaquín M López Muñoz13-Oct-02 4:29 
GeneralMySQL Inserting data Pin
Anonymous13-Oct-02 3:20
Anonymous13-Oct-02 3:20 
GeneralRe: MySQL Inserting data Pin
Nish Nishant13-Oct-02 3:31
sitebuilderNish Nishant13-Oct-02 3:31 
GeneralRe: MySQL Inserting data Pin
Anonymous13-Oct-02 10:45
Anonymous13-Oct-02 10:45 
GeneralGetting DNS Server IP Pin
Al Giv.13-Oct-02 0:19
sussAl Giv.13-Oct-02 0:19 
GeneralRe: Getting DNS Server IP Pin
Anders Molin13-Oct-02 0:29
professionalAnders Molin13-Oct-02 0:29 
GeneralQuery about how to pass a control's Identification through its Message parameters Pin
12-Oct-02 22:17
suss12-Oct-02 22:17 
any expert pls kindly help me, Smile | :)

i've created a new control "uiCtrlListCtrl" from the window control "CListCtrl". and i've defined some new message handlers.

such as:
void uiCtrlListCtrl::OnItemchanged(NMHDR* pNMHDR, LRESULT* pResult){
...
CWnd* pwndParent = GetParent();
pwndParent->SendMessage(UI_WM_ITEMCHANGING);
...
}

i have two such new list controls in a dialog(m_lsclList1 and m_lsclList2), how can i tell which control is it from when i received such an UI_WM_ITEMCHANGING message?

my message map is defined as below:
ON_MESSAGE( UI_WM_ITEMCHANGING, OnItemChanging)

the message handling function is defined as:
void uiDlgFrm::OnItemChanging(WPARAM wParam, LPARAM lParam){...}

afraid haven't expressed my problem clear enough: how can i pass something through the message's parameters to know it's from m_lsclList1 or m_lsclList2?

thx a lot!
GeneralA beginner's confusion. Pin
zhoujun12-Oct-02 21:33
zhoujun12-Oct-02 21:33 
GeneralRe: A beginner's confusion. Pin
Shog912-Oct-02 21:38
sitebuilderShog912-Oct-02 21:38 
GeneralRe: A beginner's confusion. Pin
zhoujun12-Oct-02 22:00
zhoujun12-Oct-02 22:00 
GeneralRe: A beginner's confusion. Pin
Shog913-Oct-02 5:08
sitebuilderShog913-Oct-02 5:08 
GeneralRe: A beginner's confusion. Pin
Joaquín M López Muñoz13-Oct-02 4:34
Joaquín M López Muñoz13-Oct-02 4:34 
GeneralRe: A beginner's confusion. Pin
Shog913-Oct-02 5:09
sitebuilderShog913-Oct-02 5:09 
GeneralUrlEscape Error Pin
John Bosko12-Oct-02 21:04
John Bosko12-Oct-02 21:04 
GeneralRe: UrlEscape Error Pin
Stephane Rodriguez.12-Oct-02 21:33
Stephane Rodriguez.12-Oct-02 21:33 
GeneralRe: UrlEscape Error Pin
Dominik Reichl13-Oct-02 1:45
Dominik Reichl13-Oct-02 1:45 
GeneralRe: UrlEscape Error Pin
Stephane Rodriguez.13-Oct-02 5:43
Stephane Rodriguez.13-Oct-02 5:43 
GeneralA subclassed CStatic control and WM_RBUTTONDOWN Pin
xeonboy12-Oct-02 19:56
xeonboy12-Oct-02 19:56 
GeneralRe: A subclassed CStatic control and WM_RBUTTONDOWN Pin
Gary R. Wheeler13-Oct-02 4:29
Gary R. Wheeler13-Oct-02 4:29 
GeneralScott Meyers' Effective STL :: C++ Pin
valikac12-Oct-02 17:37
valikac12-Oct-02 17:37 
GeneralRe: Scott Meyers' Effective STL :: C++ Pin
Michael Dunn12-Oct-02 18:24
sitebuilderMichael Dunn12-Oct-02 18:24 
GeneralRe: Scott Meyers' Effective STL :: C++ Pin
Jim Crafton12-Oct-02 19:07
Jim Crafton12-Oct-02 19:07 
GeneralRe: Scott Meyers' Effective STL :: C++ Pin
Paul M Watt12-Oct-02 19:52
mentorPaul M Watt12-Oct-02 19:52 
GeneralRe: Scott Meyers' Effective STL :: C++ Pin
Daniel Turini12-Oct-02 22:03
Daniel Turini12-Oct-02 22:03 

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.