Thread: Embedding Objects into Picture Controls

  1. #1
    Registered User
    Join Date
    Mar 2005
    College Station, TX

    Embedding Objects into Picture Controls

    I have a problem. I'm using Objective Grid 7.0, it is basically like an excel type control to display and manipulate data in a tabular format. Well, I have a property sheet set up with 2 property pages. On one of the property pages is where I display the Grid and eventually can click on it, scroll through the cells, input numbers via keyboard, etc. Now, I embed this Grid in a picture control(the picture control kinda acts like a placemat for it), the only problem is that I cannot do anything with the Grid! I cannot scroll, I cannot input data into it.

    I suspect it has something to do with having the Grid having Focus or Active state or something like that, but even when I set those properties it still doesnt do anything. Anybody have any suggestions

    m_wndGrid.SubclassDlgItem(IDC_GRIDHOLDER, this);

    This is the member that I use to assign the Grid to the picture control.

    Anybody have any suggestions?


  2. #2
    train spotter
    Join Date
    Aug 2001
    near a computer
    make sure the grid is the 'top most' control in the z-order. That is the picture control is not 'covering' it. Check to see if the picture is getting msg's or the grid.

    Try SetWindowPos() on the grid using HWND_TOPMOST with (SWP_NOMOVE | SWP_NOSIZE)

    Also make sure the dialog / window is the grids parent (not the picture frame).
    Last edited by novacain; 03-05-2005 at 09:41 PM.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 60
    Last Post: 12-20-2005, 11:36 PM
  2. Accessing/working with member objects of parent classes
    By ChadJohnson in forum C++ Programming
    Replies: 4
    Last Post: 03-31-2005, 11:01 PM
  3. Picture Box Controls
    By ventolin in forum Windows Programming
    Replies: 1
    Last Post: 07-27-2004, 02:03 PM
  4. chain of objects within pop framework help needed
    By Davey in forum C++ Programming
    Replies: 0
    Last Post: 04-15-2004, 10:01 AM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM