Click here to Skip to main content
15,922,533 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: VC6 Project dependencies and project configurations Pin
Michael Dunn24-Feb-04 15:40
sitebuilderMichael Dunn24-Feb-04 15:40 
GeneralRe: VC6 Project dependencies and project configurations Pin
Diarrhio24-Feb-04 17:54
Diarrhio24-Feb-04 17:54 
GeneralRe: VC6 Project dependencies and project configurations *solved* Pin
Diarrhio25-Feb-04 10:59
Diarrhio25-Feb-04 10:59 
GeneralMFC SDI FormView - need multi-edit views Pin
braddenn24-Feb-04 11:55
braddenn24-Feb-04 11:55 
GeneralRe: MFC SDI FormView - need multi-edit views Pin
CodeBrain25-Feb-04 2:04
CodeBrain25-Feb-04 2:04 
GeneralDistinguish btwn click within and more than one second Pin
vancouver77724-Feb-04 11:08
vancouver77724-Feb-04 11:08 
GeneralRe: Distinguish btwn click within and more than one second Pin
PJ Arends24-Feb-04 14:43
professionalPJ Arends24-Feb-04 14:43 
Generalcontrol containers.. Pin
Kagehi24-Feb-04 10:33
Kagehi24-Feb-04 10:33 
Now that I am actually on the right board, I hope...

I am trying to impliment a window in C++ that I can use in VB. Why? Because VB doesn't provide access to the two things I need for my project:

1. The ability to change the windows control container ambient property from runtime to design mode. I want to build a simple form designer into the program I am making. Most existing form designers cost money I don't have and can't be integrated into your own applications (even assuming I wanted the bloat from them).

A normal designer would be useless anyway. I need to have a way to describe how the events tie into other things. Basically the situation is like this:

[Client]                                [Forms Control]
  |---Inbuilt functions <-- Inbuilt functions -|   ^
  |---Plugins (scripts) <----------------------/   |
         \-----------------------------------------/


In other words, a button may pass the contents of a textbox on to the client's Send function when clicked. Something else may cause a Change event that needs to execute the CallPlugin function instead, which allows the script to ask for the data. There is no practical way to do this if I can't let the user specify which of these things to do in the form layout file. Traditional form designers just place the basic information on the control into the file, not extended stuff like I need.

However, as usual the Unholy Order of MSDN doesn't provide any usable information on control containers and every web page seems to involve how to get the ambient properties, but not change them. Ironically the one page that I once found, when looking for how to change the multiline property of a textbox in VB (go figure..), I can no longer find, or remember what odd combo of search terms I used to accidentally get there.

Help finding usable information on actually using control containers and setting their ambient properties would be greatly appreciated.

2. Eventually I would like to be able to let the users add 'any' control they like through the designer. The problem is that I have no way of knowing what controls I plan to use before hand, so I can't build in a comprehensive list of every event that I need to trap. I *think* I may have some idea how to trap and handle events other than the known ones like 'Click', which all controls tend to have, but I have no idea how to properly get a list of possible events or how to use that information to identify unknown events and deal with them. As usually, all documentation on the subject refers to using known events and its sole concession to the possibility that such unknown events even exist is something like:

ElseIf
'Put code to handle unexpected events here..

C++ code refering to this isn't any better, but I figure that if I have a list of things the object *should* do, then there may be some chance of figuring out which event it did fire. Nice that this tiny key detail escaped the notice of all those experts writing example code. Kind of like how MFC docs always assume you know which header file to look in for the value of the WTF_ISTHIS flag for some API call (or that you even have the needed files). lol
GeneralRe: control containers.. Pin
Kagehi25-Feb-04 7:14
Kagehi25-Feb-04 7:14 
QuestionReferencing an external version resource? Pin
Ravi Bhavnani24-Feb-04 9:22
professionalRavi Bhavnani24-Feb-04 9:22 
AnswerRe: Referencing an external version resource? Pin
David Crow24-Feb-04 9:39
David Crow24-Feb-04 9:39 
GeneralRe: Referencing an external version resource? Pin
Ravi Bhavnani24-Feb-04 9:45
professionalRavi Bhavnani24-Feb-04 9:45 
GeneralRe: Referencing an external version resource? Pin
David Crow24-Feb-04 9:56
David Crow24-Feb-04 9:56 
GeneralRe: Referencing an external version resource? Pin
Ravi Bhavnani24-Feb-04 11:09
professionalRavi Bhavnani24-Feb-04 11:09 
GeneralRe: Referencing an external version resource? Pin
David Crow24-Feb-04 15:43
David Crow24-Feb-04 15:43 
GeneralRe: Referencing an external version resource? Pin
Ravi Bhavnani25-Feb-04 5:40
professionalRavi Bhavnani25-Feb-04 5:40 
GeneralRe: Referencing an external version resource? Pin
Prakash Nadar24-Feb-04 14:04
Prakash Nadar24-Feb-04 14:04 
GeneralRe: Referencing an external version resource? Pin
Ravi Bhavnani25-Feb-04 5:36
professionalRavi Bhavnani25-Feb-04 5:36 
AnswerRe: Referencing an external version resource? Pin
Michael Dunn24-Feb-04 15:43
sitebuilderMichael Dunn24-Feb-04 15:43 
GeneralRe: Referencing an external version resource? Pin
Ravi Bhavnani25-Feb-04 5:39
professionalRavi Bhavnani25-Feb-04 5:39 
GeneralSockets Pin
Anonymous24-Feb-04 6:49
Anonymous24-Feb-04 6:49 
GeneralRe: Sockets Pin
Prakash Nadar24-Feb-04 14:00
Prakash Nadar24-Feb-04 14:00 
QuestionSingle-instance executable??? Pin
DanYELL24-Feb-04 6:37
DanYELL24-Feb-04 6:37 
AnswerRe: Single-instance executable??? Pin
David Crow24-Feb-04 6:51
David Crow24-Feb-04 6:51 
AnswerRe: Single-instance executable??? Pin
john.angel24-Feb-04 9:47
john.angel24-Feb-04 9:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.