Apologies for the confusion. I meant "pointer to the 2nd list control"!
Richard Lewis
Posts
-
CListCtrl and CTabCtrl help required -
CListCtrl and CTabCtrl help requiredThanks for the reply. GetDlgItem is not of any help, directly, but yes it has some role to play. Meanwhile, I have worked out the solution and it seems to work well. Here's what I did: a) I am persisting the pointers to all dialogs that the TabCtrl-1 will hold. (Simply putting them in a "CDialog *m_tabPages[4];" variable) b) Now I am simply doing the following CListCtrl * ptrToCListCtrl-2=(CListCtrl * )(TabCtrl.m_tabPages[0]->GetDlgItem(CListCtrl-2)); Thanks for the initiative, once again.
-
CListCtrl and CTabCtrl help requiredI have compiled a MFC dialog-based application. The GUI is organizedas follows: The application window is dialog-based and has the following on it: 1) Main dialog window has on it i)CListCtrl-1, ii)CTabCtrl-1 2) CTabCtrl-1 has on it 2 property pages. One of the property pages has a CListCtrl-2. (The other property page is irrelevant here) At the GUI-level, I want to achieve the following: "When an item in CListCtrl-1 is selected, the CListCtrl-2 should get populated with some values" What I am unable to do: I have added a message handler for CListCtrl-1 on the NM_CLICK event, but don't know how to get a pointer to CListCtrl-2 from the Main Dialog. I have sufficient experience with VC++ - any help even outlining a technique of doing this (although code is always welcome) will be highly appreciated. Thank you very much for the time you will taking out to help me on this.
-
DataGrid Select RowHi All, I am using the DataGrid control to display a list of items from the database. I want to know the following: How can I select a row in the DataGrid without using checkboxes? After selecting the row how do I capture a value contained in that row? (For a sample of what I want, this is the same behaviour as can be seen at http://www.codeproject.com/script/comments/forums.asp[^] Click one of the Forums that appear on this link. The entire row gets selected. ) Any help will be greatly appreciated:confused: RL
-
DLL and Static Library DoubtFirst of all, thanks for all the 'activity' being generated on this thread! Well I agree with you Ian, that is exactly my understanding. (the understanding that A.lib **need not**be shipped when shipping B.dll. But thats not the way it is working out currently. I have done exactly that. I am conscious of the fact that the size of the dll (B.dll) swells when I statically link A.lib with it. However, when using it in an application, the MSVC compiler generates LNK2001 errors (symbol not found) for all of the functions in the static library!! (I guess you might be skeptic of some settings in my compiler; but trust me it is plain code!) Thanks for help again. (Btw,please respond to this question):confused:
-
DLL and Static Library DoubtThanks for the reply. I was quite aware that while shipping the 'exe', I dont need to ship the lib file. My specific query was regarding shipping of the static library while shipping the dll. I thought the linker (while creating the dll) would automatically extract out the 'code' from the static library and insert it into the dll code. Therefore, not requiring the lib to be shipped alongwith the dll! Please help.:((
-
DLL and Static Library DoubtConsider the following background information: a) I have a static library, say A.lib b) I create a DLL, say D.dll, in which I write functions that require me to link the dll with A.lib c) I ship my dll i.e. D.dll Now comes my doubt: Do I need to ship the static library (A.lib) also along with the DLL? (I observed that when I use the dll in developing an application, the compiler gives me LNK2001 errors for all functions in the static library A.lib. Of course, all LNK2001 errors disappear if I include A.lib in the application workspace. (But that's not the idea, I guess)) Any help will be greatly appreciated.:( Richard
-
Property Sheet placementhi! I needed to implement a schema wherein one Property Sheet is displayed over the other, although with a slight offset. (Please note that both sheets are modal). Any help will be highly appreciated. Regards Richard
-
CArray template classThanks so much for this Holger, that was very kind of you.
-
CArray template classDo you mean implementing a = operator that copies from one CStringArray into another. P.S:I say this, because i am now using a statically allocated char[][], thereby eliminating the need for copying!
-
CArray template classOK thats fine, but what happens when I **NEED** a CStringArray in my structure. (Right now i have replaced the CStringArray by a char**) but thats not very elegant!)
-
CArray template classhi there, just wanted to let you'll know: When i remove the CStringArray from the structure it works!
-
CPropertyPage Helphi! thanks for your reply. are you sure this will work? I had tried something similar but it didnt! :(
-
CPropertyPage HelpHi! I am writing an application whose UI is nothing but a property sheet, with pages on it. How can I do this? 1. If i choose a dialog app in AppWizard, how can i convert this app so that the main dialog gets derived from CPropertyPage (and not CDialog). Please help
-
Sending messages to another applicationThanks so much for your quick reply, Papa (is that ur name ?):-D
-
Sending messages to another applicationHi! I was implementing the On-screen keyboard application that comes with Windows. I have two queries regarding this: 1. I have made my app 'always on top', but the problem is setting focus to the application just below this one. I am aware that SetFocus is useless in this case. I want to find a way to this using GetNextWindow 2. Let's assume notepad is going to be receiving keystrokes via this on-screen keyboard app. Can anyone send me code to this. I have tried something like: DWORD dwProcessID; ::GetWindowThreadProcessId(hForeground,&dwProcessID); ::PostThreadMessage(dwProcessID, WM_KEYDOWN, 65, 1); ::PostThreadMessage(dwProcessID,WM_CHAR, 65,1); ::PostThreadMessage(dwProcessID, WM_KEYUP, 65,1); But this doesnt help. Any help will be greatly appreciated. Thanks for your time Richard
-
VC++ RuntimesI have made a app in VC 6.0 and intend to deploy it over a range of platforms ie. Win9x, Win NT, Win2K and XP. Can anyone give me the list of all runtimes to include along with my executable. ( I am using MFC as a shared dll.):confused: