Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
R

Richard Lewis

@Richard Lewis
About
Posts
17
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • CListCtrl and CTabCtrl help required
    R Richard Lewis

    Apologies for the confusion. I meant "pointer to the 2nd list control"!

    C / C++ / MFC c++ help tutorial

  • CListCtrl and CTabCtrl help required
    R Richard Lewis

    Thanks 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.

    C / C++ / MFC c++ help tutorial

  • CListCtrl and CTabCtrl help required
    R Richard Lewis

    I 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.

    C / C++ / MFC c++ help tutorial

  • DataGrid Select Row
    R Richard Lewis

    Hi 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

    ASP.NET question database com tools help

  • DLL and Static Library Doubt
    R Richard Lewis

    First 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:

    C / C++ / MFC help question learning workspace

  • DLL and Static Library Doubt
    R Richard Lewis

    Thanks 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.:((

    C / C++ / MFC help question learning workspace

  • DLL and Static Library Doubt
    R Richard Lewis

    Consider 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

    C / C++ / MFC help question learning workspace

  • Property Sheet placement
    R Richard Lewis

    hi! 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

    C / C++ / MFC database xml help

  • CArray template class
    R Richard Lewis

    Thanks so much for this Holger, that was very kind of you.

    C / C++ / MFC help csharp c++ visual-studio question

  • CArray template class
    R Richard Lewis

    Do 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!

    C / C++ / MFC help csharp c++ visual-studio question

  • CArray template class
    R Richard Lewis

    OK 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!)

    C / C++ / MFC help csharp c++ visual-studio question

  • CArray template class
    R Richard Lewis

    hi there, just wanted to let you'll know: When i remove the CStringArray from the structure it works!

    C / C++ / MFC help csharp c++ visual-studio question

  • CPropertyPage Help
    R Richard Lewis

    hi! thanks for your reply. are you sure this will work? I had tried something similar but it didnt! :(

    C / C++ / MFC question design help

  • CPropertyPage Help
    R Richard Lewis

    Hi! 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

    C / C++ / MFC question design help

  • Sending messages to another application
    R Richard Lewis

    Thanks so much for your quick reply, Papa (is that ur name ?):-D

    C / C++ / MFC help

  • Sending messages to another application
    R Richard Lewis

    Hi! 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

    C / C++ / MFC help

  • VC++ Runtimes
    R Richard Lewis

    I 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:

    C / C++ / MFC c++
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups