|
you should see here[^]...
CDialog myDialog(MY_DIALOG_ID);
myDialog.DoModal();
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
He asked to do that without a dialog resource
|
|
|
|
|
i understood withoud a dialog resource made with the visual editor...
maybe he wants to construct the dialog programatically !?
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
toxcct wrote:
maybe he wants to construct the dialog programatically
Yes, I suppose that's what he wants
|
|
|
|
|
I've never done that but looking in the MSDN I have found some clues. You have to first create a class that inherits from CDialog, then inside this constructor call the parameterless constructor of CDialog and then call InitModalIndirect function passing a structure in which you describe how your dialog box will look like(take a look at the MSDN for more details).
Finally call DoModal.
Hope this helps
|
|
|
|
|
Thank you all for your help.
I'm going to try it.
Actually I need modal window like messagebox.
Hope this will be fine.
- NS -
|
|
|
|
|
I think (never did it before) that it will do what you want: in the template structure, you can specifie the number of controls inside your dialog. But you have to look more in details in the MSDN to see how it works really.
|
|
|
|
|
Certainly.
Thank you very much.
|
|
|
|
|
Raymond Chen's blog (oldnewthing, google it) had an article on creating dialog resources dynamically.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
Hi,
I'm trying to add a child dialog box to a property page; so in a page I have a bunch of controls, plus this child dialog which contains more controls, so the child dialog can be swapped given the context. I've got it working just fine, but there's a slight problem. In XP property pages are painted with a white-grey gradient fill, whereas normal dialogs appear with the system grey background. It's fairly easy to get the child dialog to behave transparently by replacing OnEraseBackground, and OnPaint with no-draw functionality, but of course all the child controls (statics & check boxes) are still painted with a system grey background. Is there way to fix this, other that overriding the draw routine for all the child controls?
Joel Holdsworth
|
|
|
|
|
i want to clear all cookies in the system.. using javascript.. i'm maintaining the menu states using cookies.. plz.. i'm lazy to go to any javascript forums . i'm home sick !!
V
|
|
|
|
|
You should post your question in a Javascript forum
|
|
|
|
|
Hi ,
if anybody have example (sample code written in c++) of msolap . Please give me links.
thanks.
|
|
|
|
|
you might want to try this[^] site... its all abt msolap
|
|
|
|
|
How to convert VB.NET form screens to VC++.net resource template? Please let me know how to convert these vb.net forms to vc++ dialog resources. Is there any way?
-Thanks for great helping.
|
|
|
|
|
I think the easy answer is "No". I think you're just going to have to redraw them!
Joel Holdsworth
|
|
|
|
|
Hi,
I seem to be stuck in this MFC coding world...
I made a treeview and I coded a message handling function that handles the message =TVN_SELCHANGED (when a tree item is selected). I did this first by going to the properties of my CLeftView class and clicking 'messages' button, then scrolling to =TVN_SELCHANGED and selecting the item from the drop down list to add the function for this message. Then I coded it.
But for some weird reason that function does not seem to execute when I run my program and select an item in the tree. What gives? I am a newbie in MFC, I am more comfortable in .NET, but already dislike to program in MFC - its just so much easier in .NET.
Anywas, if anybody knows what Im doing wrong, or maybe what im not doing that Im supposed to, if you could point it out to me, I would appreciate it greatly. Thanks.
TraileR ParK LifE 4Ever
|
|
|
|
|
Is there any method to track creation and activation of windows of different processes?
I can't use windows hook due to some of my project rules.
Is there any simple event watch functions, rather than using a timer or thread?
- NS -
|
|
|
|
|
This sounds like homework, because that is a rediculus rule.
Look up process in the MSDN, specificaly EnumProcesses().
I do not know it that helps, but it is a start.
INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
|
|
|
|
|
Thank you for replay.
But why did you think it is a homework? I will be fine if it was a homework!
OK, I'm going to try EnumProcesses()...
|
|
|
|
|
I didn't realy.;) I just thought the no-hook requirement to restrictive. The enumeration process will probably be slow and may still require a seperate thread to raise an event.
I've spent time searching and found nothing, that did not use hooks.
INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
|
|
|
|
|
As Nish works for Dundas, it might be something for one of their classes and the rule would be due to the fact that they don't want to install a hook on a client machine.
Program Manager - MSDN Online
Vista/WPF (Avalon)/XAML
MICROSOFT
|
|
|
|
|
Tom Archer - MSFT wrote:
As Nish works for Dundas, it might be something for one of their classes and the rule would be due to the fact that they don't want to install a hook on a client machine.
Sir,
Sorry for correcting you, Nishad S is some other person, his name resemble with NISH....
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Oh wow. Don't I feel silly!!!
Thanks for the correction!
Program Manager - MSDN Online
Vista/WPF (Avalon)/XAML
MICROSOFT
|
|
|
|
|
I want to perform some calculation which require extremely large floating point values i.e. > 1.7e308. I want some class for handling such large calculations. 128Bit or more.
Any tips would be welcomed.
Thanks!
Muhammad Shoaib Khan
http://geocities.com/lansolution
|
|
|
|