Click here to Skip to main content
15,915,093 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralGet router stats Pin
pma7-Sep-03 3:51
pma7-Sep-03 3:51 
GeneralRe: Get router stats Pin
geo_m7-Sep-03 6:01
geo_m7-Sep-03 6:01 
GeneralModeless Dialog box Pin
Ph@ntom6-Sep-03 23:40
Ph@ntom6-Sep-03 23:40 
GeneralRe: Modeless Dialog box Pin
valikac7-Sep-03 5:16
valikac7-Sep-03 5:16 
GeneralRe: Modeless Dialog box Pin
Ph@ntom7-Sep-03 7:44
Ph@ntom7-Sep-03 7:44 
Questionapplying skinmagic toolkit to vc++ programs ? Pin
AdrenalineDetonator6-Sep-03 23:15
AdrenalineDetonator6-Sep-03 23:15 
AnswerRe: applying skinmagic toolkit to vc++ programs ? Pin
Neville Franks7-Sep-03 11:01
Neville Franks7-Sep-03 11:01 
QuestionHow to handle events in List Control if I don't have a variable? Pin
ben26-Sep-03 22:27
ben26-Sep-03 22:27 
Hi,

In my SDI application in a FormView I use two dialogs (multi-form application) one of them is dynamically selected at runtime.
So, I can't add any variables of the controls on the second dialog to my view class because it gives error at runtime as it can't associate that variable with the first dialog, because of the way the variables are defined, like as follows:
public:
//{{AFX_DATA(CFormTestView)
enum { IDD = IDD_DIALOG1 };
CEdit m_EditCtrl;

//}}AFX_DATA

Now my problem is: in the second dialog I have a list control and I want track dbl-click and rt-click messages from that control. So, I have a class CMyListCtrl which is subclassed from CListCtrl. As I can't have a variable of my List Control, how can I associate the List Control to CMyListCtrl so that I can handle the different Events?

Please advise


AnswerRe: How to handle events in List Control if I don't have a variable? Pin
Anonymous7-Sep-03 8:16
Anonymous7-Sep-03 8:16 
GeneralReproducing key events Pin
Minoo_Sh6-Sep-03 22:21
Minoo_Sh6-Sep-03 22:21 
GeneralRe: Reproducing key events Pin
Taka Muraoka6-Sep-03 23:28
Taka Muraoka6-Sep-03 23:28 
GeneralWM_KEYDOWN Pin
Minoo_Sh6-Sep-03 22:12
Minoo_Sh6-Sep-03 22:12 
GeneralRe: WM_KEYDOWN Pin
imsniper8-Sep-03 4:00
imsniper8-Sep-03 4:00 
GeneralRe: WM_KEYDOWN Pin
Minoo_Sh8-Sep-03 19:00
Minoo_Sh8-Sep-03 19:00 
GeneralRe: WM_KEYDOWN Pin
imsniper8-Sep-03 21:23
imsniper8-Sep-03 21:23 
GeneralCFileDialog, just thought I should share this Pin
Abin6-Sep-03 21:56
Abin6-Sep-03 21:56 
GeneralRe: CFileDialog, just thought I should share this Pin
Michael Dunn7-Sep-03 8:22
sitebuilderMichael Dunn7-Sep-03 8:22 
GeneralI'm afraid you are incorrect Pin
Abin7-Sep-03 14:24
Abin7-Sep-03 14:24 
GeneralRe: I'm afraid you are incorrect Pin
Michael Dunn7-Sep-03 20:08
sitebuilderMichael Dunn7-Sep-03 20:08 
Generalok Pin
Abin8-Sep-03 0:45
Abin8-Sep-03 0:45 
GeneralRe: CFileDialog, just thought I should share this Pin
PJ Arends7-Sep-03 8:34
professionalPJ Arends7-Sep-03 8:34 
GeneralEditable ListBox Pin
ben26-Sep-03 18:38
ben26-Sep-03 18:38 
GeneralRe: Editable ListBox Pin
Neville Franks6-Sep-03 22:22
Neville Franks6-Sep-03 22:22 
GeneralRe: Editable ListBox Pin
ben26-Sep-03 22:52
ben26-Sep-03 22:52 
Generalhelp with algorithm Pin
coda_x6-Sep-03 17:24
coda_x6-Sep-03 17:24 

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.