Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. jdeejay

    Controlling context menus

    Uuuuhhh, duh, it *was* silly. Added the .h file in the wrong place. Thanks apatterno for your help.
  2. jdeejay

    Controlling context menus

    Thanks for the response. I see the reason to subclass the control, but I haven't been able to implement it properly. I can't seem to add the control variable in the declaration for the dialog class without error. Keep getting compile errors 2146 and 2501 about missing ';' before identifier...
  3. jdeejay

    Controlling context menus

    What steps are needed to do a OnContextMenu (dialog app) and have the menu: 1) not appear unless it is over the list control and 2) change according to what is selected on the list control? Por ejemplo, in Outlook, the context menu is different when right clicking on the left, shortcuts, pane...
  4. jdeejay

    CIPAddressCtrl -- m_hWnd Assertion Failure

    When trying to capture an ip address entered in a dialog, an assertion failure is noted about the handle to the window (ASSERT(::IsWindow(m_hWnd)). GetAddress()does not directly specify you give it a handle to a window. Why would the ASSERT not be getting a correct m_hWnd? I get this both...
  5. jdeejay

    bitmap into some buffer

    Would someone please point me in the right direction? I am trying to use svgalib which has a function gl_putbox which I believe will allow me to put a bitmap image to some place on the screen. It takes a buffer as one of the arguments. My question is how to fill the buffer with bitmap data...
  6. jdeejay

    getchar () vs scanf

    I have two sets of prompts. The user picks from 3 choices in the first prompt, the code executes and then prompt number two appears. Now when I read in the second prompt (the first time) it is invalid. when I read a second time, it is valid. Then it alternates back and forth--invalid then...
  7. jdeejay

    Aaaagh!! passing addr of struct

    Thanks, That last response fixed the problem (after doing your first suggestion). J
  8. jdeejay

    Aaaagh!! passing addr of struct

    Matt, Thanks for the help. I put that in for both the misfunc.c and the mylib.h entry but I am still getting errors. when compiling test.c - refers to the mylib.h file and says "parse error before '&'" also warnings that struct Config is declared inside parameter list and that...
  9. jdeejay

    Aaaagh!! passing addr of struct

    Can someone please help with this seemingly easy task. I have a struct and want to call another function that can manipulate the data within the struct. I have a main where the struct is. I have written a file to have the function. And then I have written a mylib.h which is incl in each. I...
  10. jdeejay

    Tree control and their checkboxes

    I would like to do something similar to the common interface seen when installing software (the tree structure with check boxes indicating what will/will not be installed). When the root item is selected (& not greyed out), all the child items are selected for installation. When only some of...
  11. jdeejay

    populating the Help file

    I am only using a dialog box, but would like to learn how to include help support. During the wizard, I added help support, but what do I do now with the "AfxDlg.atf" and "myDlg.cnt" files? Thanks
  12. jdeejay

    Dynamic text on a dialog box

    Aahhh, silly me. I keep forgetting to follow up the chain to see what else I can do with those items. Thanks
  13. jdeejay

    Dynamic text on a dialog box

    Is there a way to put text that changes on the dialog box? ie, When the user picks an item from a combobox, I want to display that item along with other words as a caption to a listbox. An example: the user picks "Frank" from combo and then the caption(static txt box?) over the...
  14. jdeejay

    HTREEITEM -- how to get text from it

    jfhuang, thanks for the response. I have been so completely frustrated today. I think I was making things WAY too complicated for what I am trying to accomplish. My question was in how to get that text. Do I just keep track of any handles that I want and pass those handles back to...
  15. jdeejay

    HTREEITEM -- how to get text from it

    Every example I see of using the Tree control adds the items by hard coding the name in. Not very realistic. Maybe HTREEITEM is not even what I need. How do you grab info from a DB and add items to a tree but know where to put them? Somebody please point me in the right direction.
  16. jdeejay

    HTREEITEM -- how to get text from it

    How do you use an HTREEITEM with a tree control. I am trying to learn to pull from a database to populate a tree...If I have an array of HTREEITEMS, how can I later get the text out of it. i.e. If I am adding to the tree, I don't want to add a root if it is already there, so I want to compare...
  17. jdeejay

    Newline

    I'm sorry, can you explain more. I am unclear on your meaning of "I am editing the text from my program". I thought you wanted the user to be able to enter multiple lines in an Edit Box.
  18. jdeejay

    Newline

    If you are talking about an edit box on your dialog, then change its properties to "multiline" and then when you are typing in it, hit ctrl+enter to move to the next line. John
  19. jdeejay

    What happened to my class?

    Thanks Matt, that fixed both problems. John
  20. jdeejay

    What happened to my class?

    I don't know whats going on, but that didn't work either. And I have also noticed that the Autocompletion feature (when you type m_someControl. and it pops up possible functions) is not working either. ???

Part and Inventory Search

Back
Top