Embedding Objects into Picture Controls

This is a discussion on Embedding Objects into Picture Controls within the Windows Programming forums, part of the Platform Specific Boards category; I have a problem. I'm using Objective Grid 7.0, it is basically like an excel type control to display and ...

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

    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?

    Haynes

  2. #2
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,859
    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 08: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, 10:36 PM
  2. Accessing/working with member objects of parent classes
    By ChadJohnson in forum C++ Programming
    Replies: 4
    Last Post: 03-31-2005, 10: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21