|
I am making a SDI application.In that when a user click a tool bar button a dialog box opens up in that user have to fill sum values n then he has to press save button ...
what i want to do is when user click on save button that particular dialog box s'ld colse down n the values from that dialog box should go in list ctrl made in sdi application
I m not getting the way to it..may be post message or send message is helpful in it but i do not knw how to use them
can anyone help in this
thanxs
|
|
|
|
|
Hi,
Actually, you'd use PostMessage if your dlg were modeless.
Probably not. The save button closes the dlg, but after that you hold the C++ object of that dlg. So you can retrieve the entered values from the dlg and pass them to the list ctrl;
<br />
CMyDlg dlg;<br />
if (IDOK == dlg.DoModal())<br />
{
CString val1 = dlg.m_val1;<br />
<br />
m_list.Add (val1);
}
--
======
Arman
|
|
|
|
|
After adding ATL Aupport to MRFC application, then i added ATL COM object ,but this object is not registering.... how can i register?
|
|
|
|
|
kiranin wrote: After adding ATL Aupport to MRFC application, then i added ATL COM object ,but this object is not registering.... how can i register?
what error is it giving~
"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
Support CRY- Child Relief and you
|
|
|
|
|
no error, just it cant registered in registry, for example when i add context menu items to textfiles it cannot displayed when create through MFC. Now what i want is how can i register ATL COM object in MFC Application
|
|
|
|
|
how can i Add context menu item through MFC Application,
i saw many examples, in all examples context menu item is added through ATL COM wizard,
but my application is MFC, when i launch my application context menu item will be added .
|
|
|
|
|
kiranin wrote: i saw many examples, in all examples context menu item is added through ATL COM wizard,
but my application is MFC, when i launch my application context menu item will be added .
Handle OnLButtonDown Message and generate your own context menu there
"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
Support CRY- Child Relief and you
|
|
|
|
|
i want to add shell context menu item to explorer not to my application items.
|
|
|
|
|
I think I saw examples of this object on codeproject did you search?
|
|
|
|
|
|
Hi all.
In my application I am calling a SHGetFolderLocation() function to load a browse Folder dialog.
I have included Shlobj.h and also I have added shell32.lib file in
Project->Settings->Lib tab.
The version of shell32.dll is 6.0.2900.2180.
But when I tried to compile a program, it gives me a compile time error
" error C2065: 'SHGetFolderLocation' : undeclared identifier "
Can anybody help?
Thanks
Rakesh Thakur
|
|
|
|
|
Try to#define _WIN32_IE 0x0500
|
|
|
|
|
Thanks for reply.
I tried adding #define _WIN32_IE 0x0500
but didn't worked-out.
Thanks
Rakesh Thakur
|
|
|
|
|
|
In the same file in which I am calling that function.
Rakesh Thakur
|
|
|
|
|
Do you insert it to stdafx.h
|
|
|
|
|
Yes I have
#include "stdafx.h"
#include "shlobj.h"
#define _WIN32_IE 0x0500
Rakesh Thakur
|
|
|
|
|
If you insert this line on StdAfx.h I think it must solve
|
|
|
|
|
Rakesh_Thakur wrote: #define _WIN32_IE 0x0500
You must define it before anything else.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Try it like this:
#define _WIN32_IE 0x0500
#include "stdafx.h"
#include "shlobj.h"
If you want, you can put _WIN32_IE=0x500 into the PreProcessor Definitions on the Project Properties page
Scott
|
|
|
|
|
Perhaps you meant to respond to Rakesh.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Try it like this:
#define _WIN32_IE 0x0500
#include "stdafx.h"
#include "shlobj.h"
If you want, you can put _WIN32_IE=0x500 into the PreProcessor Definitions on the Project Properties page
Scott
|
|
|
|
|
|
Wireless data transfer from handheld to wireless printer or system
Subhash jain (Sundyne Technologies pvt. ltd.- 604,B wing,Trade world Lower parel Mumbai)
|
|
|
|
|
And you need help with ???
|
|
|
|