|
thx.
But what do you mean by dlgform2 must be attached to existing dialog?
sign Jakob W.
|
|
|
|
|
GREETINGS
If you have the second dialog created and it is already on the screen, only creating a new member for it is useless. So you need to attach the member to the dialog. But if you have the member that you used to create the dialog, you should use it without any attachments.
For example:
CdlgForm2 dlgForm2;
dlgForm2.DoModal();
dlgForm2 is now attached to Dialog2. There are different ways how to do it.
Good Luck!
LOVE & PEACE to everyone
LOVE & PEACE to everyone
|
|
|
|
|
GREETINGS
If you have the second dialog created and it is already on the screen, only creating a new member for it is useless. So you need to attach the member to the dialog. But if you have the member that you used to create the dialog, you should use it without any attachments.
For example:
CdlgForm2 dlgForm2;
dlgForm2.DoModal();
dlgForm2 is now attached to Dialog2. There are different ways how to do it.
Good Luck!
LOVE & PEACE to everyone
LOVE & PEACE to everyone
|
|
|
|
|
GREETINGS
If you have the second dialog created and it is already on the screen, only creating a new member for it is useless. So you need to attach the member to the dialog. But if you have the member that you used to create the dialog, you should use it without any attachments.
For example:
CdlgForm2 dlgForm2;
dlgForm2.DoModal();
dlgForm2 is now attached to Dialog2. There are different ways how to do it.
Good Luck!
LOVE & PEACE to everyone
LOVE & PEACE to everyone
|
|
|
|
|
GREETINGS
If you have the second dialog created and it is already on the screen, only creating a new member for it is useless. So you need to attach the member to the dialog. But if you have the member that you used to create the dialog, you should use it without any attachments.
For example:
CdlgForm2 dlgForm2;
dlgForm2.DoModal();
dlgForm2 is now attached to Dialog2. There are different ways how to do it.
Good Luck!
LOVE & PEACE to everyone
LOVE & PEACE to everyone
|
|
|
|
|
<small><br />
void CProfessionClsDlg::DoDataExchange(CDataExchange* pDX)<br />
{<br />
CDialog::DoDataExchange(pDX);<br />
DDX_Control(pDX, IDC_CATEGORIES, m_Categories);
DDX_Control(pDX, IDC_MAKEGROUPCHOICE, m_MakeGroupChoice);<br />
DDX_Control(pDX, IDC_LINKSKILLTODATABASE, m_LinkSkillToDatabase);<br />
...<br />
}<br />
</small>
It seems that I have a problem with the DoDataExchange during the InitDialog procedure. The program will always crash, no matter how I stack the DDX_Control calls, on the very first call. This really doesn't make sense to me why it would be crashing and that it was working only a few days ago. I have other dialogs in the program that function like it and they work fine which makes me believe that the solution is a rather obscure and simple one.
Thanks for the help.
"Why are we hiding from the police, Daddy?"
"We use VI, son. They use Emacs."
|
|
|
|
|
You forgot to post the details of the crash - is it an ASSERT? GPF? The monitor explodes and all files on HD are deleted?
Are you sure that control with id == IDC_CATEGORIES is defined in the dialog template?
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
<small><br />
HWND CDataExchange::PrepareCtrl(int nIDC)<br />
{<br />
ASSERT(nIDC != 0);<br />
ASSERT(nIDC != -1);
HWND hWndCtrl;<br />
m_pDlgWnd->GetDlgItem(nIDC, &hWndCtrl);<br />
if (hWndCtrl == NULL)<br />
{<br />
TRACE1("Error: no data exchange control with ID 0x%04X.\n", nIDC);<br />
<big>ASSERT(FALSE); </big> <br />
AfxThrowNotSupportedException();<br />
}<br />
m_hWndLastControl = hWndCtrl;<br />
m_bEditLastControl = FALSE;
ASSERT(hWndCtrl != NULL);
return hWndCtrl;<br />
}<br />
</small>
Actually, it's a bug that causes the dog to eat my homework.
It asserts out on the line I bolded above. I'm going to try and create a new dialog just for kicks and see if that dialog gives me problems.
Thanks for the help.
"Why are we hiding from the police, Daddy?"
"We use VI, son. They use Emacs."
|
|
|
|
|
Check nIDC passed to PrepareControl - you may have some #define conflict and symbol that you're using in DDX_Control resolves to number other than used in dialog template resource.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
With a program which has a few DLL projects and one EXE project is it okay to have #define values that are the same between the DLL's and EXE. For example one DLL project has a value for 1000 while another DLL has a value for a 1000, however both are different ID's. Is it wise to make all #defines in
a project different regardless?
Thanks again.
"Why are we hiding from the police, Daddy?"
"We use VI, son. They use Emacs."
|
|
|
|
|
Yes, especially if you plan to create context help someday This also applies to duplicated values mapped to different IDC_xxx inside single DLL or EXE.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
How to develop mailclient application in VC++ which uses pop3 protocol to retrew mails from serverlike MSExchange.
Where i have to create database to usersid and password.
how the application can be done.
Pavan ch.
|
|
|
|
|
How to develop mailclient application in VC++ which uses pop3 protocol to retrew mails from serverlike MSExchange.
Where i have to create database to usersid and password.
how the application can be done.
Pavan ch.
|
|
|
|
|
There's some usefull classes (By PJ Naughter) for playing with POP3 & SMTP :
http://www.codeproject.com/internet/cpop3conn.asp
http://www.codeproject.com/internet/csmtpconn.asp
Best regards,
-----------
Igor Soukhov (Brainbench/Tekmetrics ID:50759)
igor@soukhov.com | ICQ:57404554 | http://soukhov.com
|
|
|
|
|
How to develop mailclient application in VC++ which uses pop3 protocol to retrew mails from serverlike MSExchange.
Where i have to create database to usersid and password.
how the application can be done.
Pavan ch.
|
|
|
|
|
Hmmm, if I should answer all those questions, I would have to write the program for you.
Search around here at CodeProject, I think there a couple of classes that receives POP3 mail.
If you want to write it yourself, you should start to look at the WinSock functions (which you would use to connect to the mailserver), and then look at the POP3 protocol, so you know what commands to send to the server...
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
Hi,all
Has any know how to access remote tape on another machine? My code is as following:
CreateFile("\\\\.\\\\TapeServer\\Tape0",.....);
But it fail, how should I do???????
Thanks.
C
|
|
|
|
|
I've written a program to declare in the window explorer, a new namespace and virtual folders inside.
But i cannot drag & drop a folder or a file from the the left tree view of
the window explorer (items in the disk C for example) to a virtual folder in
my new namespace (still on the left tree view of the window explorer).
The flag SFGAO_DROPTARGET is on for the namespace and also on for each
virtual folders when the IShellFolder::GetAttibutesof() method is called !
Someone can help me ?
Pierre
|
|
|
|
|
you must use the true format, if you can't , you will be failed
|
|
|
|
|
What is the true format ?
|
|
|
|
|
I try to perform actions for the event WM_CHAR but this func not performed.
Why ??????
|
|
|
|
|
Some keys do not produce OnChar messages. But you may catch the WM_KEYDOWN and WM_KEYUP messages.
rtfm!
MSDN says...
Remarks
Because there is not necessarily a one-to-one correspondence between keys pressed and character messages generated, the information in the high-order word of the lParam parameter is generally not useful to applications. The information in the high-order word applies only to the most recent WM_KEYDOWN message that precedes the posting of the WM_CHAR message.
For enhanced 101- and 102-key keyboards, extended keys are the right ALT and the right CTRL keys on the main section of the keyboard; the INS, DEL, HOME, END, PAGE UP, PAGE DOWN and arrow keys in the clusters to the left of the numeric keypad; and the divide (/) and ENTER keys in the numeric keypad. Some other keyboards may support the extended-key bit in the lParam parameter.
Whistler: The WM_UNICHAR message is the same as WM_CHAR, except it is designed to send or post Unicode characters to ANSI windows.
(Best Regards,)
Patrick Hoffmann
-------------------------------------------------------------------------------
Technical and Operations Manager, System Analyst, Software Architect
PGP: http://www.novacom.net/pgp/PatrickHoffmann.asc
-------------------------------------------------------------------------------
veturo, der kostenlose NOVACOM Routenplaner für Europa... http://www.veturo.de
--------------------------------------------------------------------------
|
|
|
|
|
try catch this message in PreTranslateMesssage method of your window class...
Best regards,
-----------
Igor Soukhov (Brainbench/Tekmetrics ID:50759)
igor@soukhov.com | ICQ:57404554 | http://soukhov.com
|
|
|
|
|
Hi,
I have an application that makes use of a splitter window.
One pane makes use of several (up to sometimes 20) CView deriven windows.
Each of this views has a lot of child CWnd deriven windows and each such a window also has child controls like CCombo, CEdit
CLisBox etc.
Now I have a serious performance problem I think. My theory is that al the windows are 'eating' performance
by means of their message queues, is this possible? And if so, is it possible to stop these queues for the
above described views that are not active? Or is there a solution to decrease CPU use?
Hope someone can help me with this.
Regards,
Frank.
|
|
|
|
|
A message queue belongs to a thread, not a window, so you could have 15000 windows but they'd share the same queue.
My guess is that any slowdown would be due to MFC having to walk the message maps of all the views whenever a message is sent to your app.
--Mike--
http://home.inreach.com/mdunn/
Sometimes, arming yourself with a big pointy stake just won't do you any good.
|
|
|
|