|
Hi there!
[edit]:
Sorry, wrong Message board. I'll post it on the VC++/MFC Board
[/edit]
We've got a real big problem, allthough it seems to be not really difficult:
Our main application is a dialog which definitely MUST remain a dialog.
My colleague wants to create a SDI window from this dialog by clicking on a specific button.
Still no problem.
The problem ist, that the window seems not to get the windows messages:
Usually if you create a method to handle a mouseclick on a button in the toolbar, you can also create a function
OnUpdateClickXXX(CCmdUI* pCmdUI)
for example you could gray a specific button, if ButtonXXX is being clicked on.
But OnUpdateClickXXX is never called!
For me it seems, that the WM_PAINT message is being processed just by the dialog.
the SDI window is created with
CSingleDocTemplate* pDocTemplate;<br />
pDocTemplate = new CSingleDocTemplate(<br />
IDR_MAINFRAME,<br />
RUNTIME_CLASS(CSDI_LeerDoc),<br />
RUNTIME_CLASS(CMainFrame), <br />
RUNTIME_CLASS(CSDI_LeerView));<br />
AfxGetApp()->AddDocTemplate(pDocTemplate);
when you click on a button in the dialog.
All OnClickBlah, OnUpdateBlah... methods are inserted by the class wizard, and the AFX_MESSAGE_MAP
has the correct ON_COMMAND, ON_UPDATE_COMMAND...entries
Could you give us some hints, where we could look for that problem?
Sure, the problem is caused by the dialog "standing" between the application and the doc/view.
Thank you all, and i hope you can help us with our problem.
Sascha Billian
|
|
|
|
|
I have a win application that uses tabcontrol with two tabPages(tp1 & tp2). On the first tab page the user enters the product category name and that it's added to the tblCategory in the database. On the second page the user must select the category from the drop down then add products to the tblProducts.
My problem is that when a user enters a category at tp1 that is added to the database correctly, however when they move to tp2 to add the product, the category that was just added on tp1 is not available immediately on the dropdown, i.e i must first close and re-start the application before it appears. How can i make the category available immediately on tp2 dropdown list?
Dot
|
|
|
|
|
suppose that your dropdown named dropList.
just you need to refresh the data source of dropList.
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
if you know multimediabuilder program
I want create same this program
not that is question
the question
how create exe file from exe file such as multimediabuilder
Is there a proposal
yasofy
|
|
|
|
|
Exe file mean is executable file what is generated by a compiler inside an application. If you want to create an exe file from another exe file, you should write/use a compiler.
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
I dont' know wtf is multimediabuilder, but it's posible to create a.exe file from other b.exe file. You have to add a.exe file to your project as some kind of resource, and after compiling and linking b.exe, it will consist inter alia of the a.exe so you can extricate a.exe (by clicking some button for example) from b.exe as separate file.
|
|
|
|
|
another time I asked
about
how I can change background folder
I mean
when you open folder saw background white how I can set Image
yasofy
|
|
|
|
|
I want create programe to send message from my to athor computer
same message is show in windows xp(message service)
such as (net send 128.0.0.1 hi )
how I do that
in C#.net
|
|
|
|
|
|
You use a Process class:
Process myprocess = new Process();
//Program you want to launch execute etc.
myprocess.StartInfo.FileName = "c:\\windows\\system32\\net.exe";
myprocess.StartInfo.Arguments = "send 128.0.0.1 hi";
myprocess.Start();
NOTE I am not sure about the location of net. I think it is in system32, but I could be wrong.
Hope that helps.
Ben
|
|
|
|
|
ShellExecute(NULL,"open","net.exe",<br />
"send 128.0.0.1 hi","c:\\windows\\system32",SW_SHOW);
|
|
|
|
|
Hi all
Can u pls help in monitoring UPS using Power Management
Thanks
abhi
|
|
|
|
|
Is Windows Forms really the right forum for this question?
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
I have been trying to change color of tab control. But all i could do is change the color of tab - pages present on the tab control. It looks very awkward that tab pages of different color and the panel on which these pages are present is default color. Please if any one knows how to change the color of the tab control...
~Vikram Verma
|
|
|
|
|
VB.NET doesn't support that but C#. You can change the color of a tab and its page color but you can't change the color of tab control in vb.net. I assumed you are not going to use API to do that.
I wish there were such feature in VB.NET.
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
I have a main form where the user selects a customer from a drop down box. On this form is also a button that opens another form as a dialog that allows the user to enter a new customer. The user clicks "Save" on the new customer dialog and the customer is saved to the database and the main form becomes active again. I can't figure out how to update the combobox so that it displays this new customer in the list.
The combobox is bound to a datasource. I know the code to create and save a new customer is working since the change is reflected in the database. The new customer also appears in the combobox BUT only after I close and run the application again.
<br />
if (result == DialogResult.OK)<br />
{<br />
<br />
}<br />
|
|
|
|
|
Figured it out. The quick answer is to simply fill the dataset again. However, if you have any filters elsewhere on the form that use the same dataset, be prepared to deal with exceptions. You must put some data back into the dataset before any calls to the filter are made. This was a big issue for me and took me about 8-10 total hours of debugging to figure out. Then again, I am a complete noobie.
|
|
|
|
|
Glad you figured it out. But you may want to take a look at Update Controls .NET. These controls update themselves from your own data objects, not from datasets. So when you add your customer object to your list, it would automatically refresh the drop down.
|
|
|
|
|
Thanks for the link. I have checked it out and I will at least experiment with some of those controls.
|
|
|
|
|
Hi --
I'm building a GUI application in Visual C++ 2003 using the drag-and-drop Windows Forms toolbox. Does anyone know a way to build docked windows/forms (tabbed windows) into an application? I'm aiming for a look similar to the docked windows in, for example, visual studio.
Thanks in advance!
Kim
|
|
|
|
|
|
These are great controls. I have used them in the past and they are very easy to work with.
-----------------------------
In just two days, tomorrow will be yesterday.
|
|
|
|
|
How do they work with Visual c++.net (2003 or later).
Thanks,
Kim
|
|
|
|
|
I have only used them from C#, but if you are doing managed C++ development they should work the same way. I have used them in VS2003 and VS2005 and both have worked great.
-----------------------------
In just two days, tomorrow will be yesterday.
|
|
|
|
|
As Richard pointed out, the controls from Divelements are great. They have a very simple programming model and a polished look to them.
-----------------------------
In just two days, tomorrow will be yesterday.
|
|
|
|