|
Nope, VC6, but I will remember this.
Regards,
Danny Springer
|
|
|
|
|
I am not sure whether this is a nice idea, but make each of those mdi children a direct child of the desktop.
Nish
The rumours that I am an AI bot are absolutely false. These rumours have been propogated by *them* to focus all the attention on to me, while *their* bots take over the planet. Thank y%%%% Divide by zero. Cannot proceed. Abort(y/y)?
|
|
|
|
|
Why you think, that it's MDI? It's another architecture, and required another programming. See sources of MFC 7.0 for details.
|
|
|
|
|
Use the WS_EX_APPWINDOW style for every window that you want to appear in the taskbar.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
Hi.
Microsoft offers an impressive feature in MFC that routes WM_COMMAND and COMMAND_UPDATE messages via command routering using OnCmdMsg(...) in main and a function in doc to traverse through all active view. The drawback, however, is that it only works for COMMAND messages, not any messages.
I wonder if there is a technique similar to the one mentioned above for specific command type such as user commanders (WM_USER_MYCOMMAND, etc). The message map would look like this:
// ON_MESSAGE(WM_USER_MYCOMMAND, OnMyCommand)
Thanks,
Kuphryn
|
|
|
|
|
kuphryn wrote:
ON_MESSAGE(WM_USER_MYCOMMAND, OnMyCommand)
Yeah, this is allowed. People use it a lot in task tray notification handlers. They have a custom message and they use this macro.
Nish
The rumours that I am an AI bot are absolutely false. These rumours have been propogated by *them* to focus all the attention on to me, while *their* bots take over the planet. Thank y%%%% Divide by zero. Cannot proceed. Abort(y/y)?
|
|
|
|
|
|
Check this out
http://mycrib.kicks-ass.net/project4.gif
I have no idea how to start other then the class declaration.... anyone have any examples on how templates/containers are done, I need something to read to learn this, the book we use for my course doesn't help at all on templates and containers.
Thanks in advance!
BTW If someone has the urge to do what the project asks, don't hesistate, go with the flow, write it and post the code somewhere.
|
|
|
|
|
One hint about this homework: The template aspect of your asignment is trivial. Work posIntSet out as a non-template class with maxsize define as a macro somewhere:
#define maxsize 10 Concentrate on the containter issue and when you're done you'll be able to turn your solution into a templatized one with little effort (ask then here, or get some mate to help you.)
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
I have a modal dialog, and I want to change its title bar before I call DoModal(). (not use the string which is in caption box in resource editor) How can I do this?
Thank you very much!
|
|
|
|
|
Before calling DoModal , the real control is not created yet, only its encapsulating CDialog . So, you'd have to store the new caption in some member variable of the CDialog and later use it (with SetWindowText ) in OnInitDialog .
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
I see. I thought there was a member variable of CWindow which I can change directly. I am wrong.
Thank you, Joaquín.
|
|
|
|
|
lucy wrote:
I thought there was a member variable of CWindow which I can change directly. I am wrong.
I am not aware of any CWnd member for this. Add your own and then in
your OnInitDialog() call SetWindowText().
Neville Franks, Author of ED for Windows. www.getsoft.com
|
|
|
|
|
Oops, cannot use SetWindowText() in OnInitDialog. Assert failure since the m_hWnd is null. What should I do?
|
|
|
|
|
Hi Lucy,
You should be able to use SetWindowText() on OnInitDialog without this ASSERT. Are you calling it before CDialog::OnInitDialog(); - cause it needs to be after it. I checked the following and it works:
<br />
BOOL CLucyDlg::OnInitDialog()<br />
{<br />
CDialog::OnInitDialog();<br />
SetIcon(m_hIcon, TRUE);
SetIcon(m_hIcon, FALSE);
<br />
SetWindowText(m_strDlgTitle);
return TRUE;
}<br />
Hope this helps, let me know if your ASSERT still shows its ugly head...
Dylan Kenneally
London,UK
|
|
|
|
|
got it. Now I am done. Thank you, Dylan.
|
|
|
|
|
I was looking at the SQL Server index adding dialog boxes and came across their ListCtrls that implement a drop down for every row.
I was wondering if there is a sample code implementing similar to that anywhere.
To be clear, I would like to be able to click on a listctrl and have it show a drop down menu from which the users can select.
thanks
|
|
|
|
|
|
Anyone know anything about this message? Is it useful for anything besides very simple horizontal toolbars?
I was thinking of using it to simplify my layout calculations, but it doesn't seem to be smart enough to take window size into account.
--------
And we die young.
Faster we run. Alice in Chains, We Die Young
|
|
|
|
|
Since it retrieves the total size of all of the visible buttons and separators in the toolbar, then the use I think is to construct a pager control, a control where you don't have all the size to show all the toolbar buttons , then you implement a walking right and left arrow to show the next controls on the toolbar ... apart from that I don't known to use it
Cheers,
Joao Vaz
The Most Unhappy and Frustrated TCL programmer,besides that a Happy guy
|
|
|
|
|
It's very useful to set the ideal width in ReBar controls
|
|
|
|
|
Anonymous wrote:
set the ideal width in ReBar controls
Of course, why don't I thought this sooner , almost one year ago that would help me, but now with TCL
But even so thank you for sharing the tip
Cheers,
Joao Vaz
The Most Unhappy and Frustrated TCL programmer,besides that a Happy guy
|
|
|
|
|
Thank you both for your information. After months of wrestling with MFC's toolbar code AND STILL NOT GETTING IT RIGHT, i think i'll go with ReBar and use this then. To quote a sig, "Simplicity Rules"
--------
And we die young.
Faster we run. Alice in Chains, We Die Young
|
|
|
|
|
Shog9 wrote:
After months of wrestling with MFC's toolbar code
Exists a very good resource on this ...a book called MFC Internals, getting a bit old, but nevertheless a great resource
Cheers,
Joao Vaz
The Most Unhappy and Frustrated TCL programmer,besides that a Happy guy
|
|
|
|
|
Joao Vaz wrote:
a book called MFC Internals
Hmm, i'll check it out. Thanks again!
--------
And we die young.
Faster we run. Alice in Chains, We Die Young
|
|
|
|