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...
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...
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...
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...
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...
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...
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...
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...
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
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...
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...
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.
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...
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.
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
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.
???
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.