|
hi
i have write the code for that button on a form but whenever i call
it in menu then the button is not responding and i have also made
some member variable's for the combo box and initialize it in OnInitDialog() but these are also not show messege whenever call the form. and
I get this error only in this form of my project.
mailing me
Yogi
|
|
|
|
|
Few things you can try
1. Check for ON_BN_CLICKED(IDC_BTN_..., FuntionName)
is present in your messagemap BEGIN_MESSAGE_MAP
2. Check the ID of the dialog say IDD_DLG...
and the statement enum { IDD = IDD_DLG... }; in your dialogclass.
3. Check the value of ID of dialog IDD_DLG... in resource.h
check there that the ID contain uniqe value. and also other control id
that are making trouble contain unique value in resource.h
Regards
Anil
|
|
|
|
|
Hi All,
Can anyone tell me how to override the default implementation of windows's "Create Shortcut" menu handler for the context menu of "My Namespace Extension" icon?
Thanks and Regards,
Anil
|
|
|
|
|
http://www.codeproject.com/shell/shellextguide1.asp
http://www.codeproject.com/shell/shellextguide2.asp
http://www.codeproject.com/shell/shellextguide3.asp
http://www.codeproject.com/shell/shellextguide4.asp
http://www.codeproject.com/shell/shellextguide5.asp
http://www.codeproject.com/shell/shellextguide6.asp
http://www.codeproject.com/shell/shellextguide7.asp
this might help u
SaRath.
"Don't Do Different things... Do Things Differently..."
|
|
|
|
|
How can I create a menu with right-aligned shortcuts? I mean a menu that looks as follows:
-----------------
Search
-----------------
Find Ctrl+F
Find Next F3 <-- right-aligned
Because a standard menu looks like this:
-----------------
Search
-----------------
Find Ctrl+F
Find Next F3 <-- left-aligned
|
|
|
|
|
|
I think you missed to put a tab character ("\t") in your menu definition. Menu item strings with shortcuts must look like this: "Find\tCtrl+F", "Find Next\tF3".
|
|
|
|
|
I have *.rc file with
...
MENUITEM "Find\tCtrl+F", IDM_SEARCH_FIND
MENUITEM "FindNext\tF3", IDM_SEARCH_FINDNEXT
...
And the menu looks like this:
|___________________|
|_Find ______Ctrl+F_|
|_Find_Next__F3_____| <-- F3 is left-aligned
But I want the menu to look like this:
|___________________|
|_Find ______Ctrl+F_|
|_Find_Next______F3_| <-- F3 is right-aligned
|
|
|
|
|
It seems that the current implementation of Windows’ built-in menus does not support alignment you requested. Some other custom menu engines support this, for instance one used in C# applications.
In C++, you can try some third-party owner-drawn custom menus. For instance: BCMenu (http://www.codeproject.com/menu/bcmenu.asp[^]), which supports various features. Please see if it is suitable for you. Alternatively search for another one, if you are not going to implement you own menus.
|
|
|
|
|
Message Removed
modified 18-Jul-22 13:58pm.
|
|
|
|
|
whenever I use NetUserInfo() function i get error message "error C2065: 'NetUserGetInfo' : undeclared identifier" how to ues this fucntion in my program.
|
|
|
|
|
did you include Lmaccess.h; include Lm.h;
and import Netapi32.lib
whitesky
|
|
|
|
|
the NetUserGetInfo functions isn't supported under Windows 9x. So please compile your project with the following statements:
#ifndef WINVER // Allow use of features specific to Windows 2000 or later.
#define WINVER 0x0500 // Change this to the appropriate value to target Windows 98 and Windows 2000 or later.
#endif
#ifndef _WIN32_WINNT // Allow use of features specific to Windows XP or later.
#define _WIN32_WINNT 0x0500 // Change this to the appropriate value to target Windows 98 and Windows 2000 or later.
#endif
#ifndef _WIN32_WINDOWS // Allow use of features specific to Windows 2000 or later.
#define _WIN32_WINDOWS 0x0500 // Change this to the appropriate value to target Windows Me or later.
#endif
#ifndef _WIN32_IE // Allow use of features specific to IE 5.0 or later.
#define _WIN32_IE 0x0500 // Change this to the appropriate value to target IE 5.0 or later.
#endif
|
|
|
|
|
i want to enamurate the folder and its contains from
outlook not outlook express.Actually i hope there is a .pst
file for outllok i want to read that file for folder
and its message enamuration. It just read the pst file
from microsoft outlook like any antivirus name kaspersky.
plz help me.
|
|
|
|
|
I want a function to be called after dialog box has been shown.
I can't write it in OnInitDialog().
From where should I call that funtion?
Is there any CDialog method which is called immediately after showing the dialog .
Ayesha
|
|
|
|
|
You can create a user message. Use PostMessage from InitDialog() to call the function.
(WM_USER+1 and so on)
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Can you be more specific
whitesky
|
|
|
|
|
|
Thank you Anil and thank you every one.
Ayesha
|
|
|
|
|
Suppose I derive Add and Multiply from IUnknown and then
derive Calculator from Add and Multiply as shown below
IUnknown IUnknown
| |
ADD Multiply
\ /
\ /
Calculator
then how many copies of (QueryInterface,AddRef, Release ) will be there in Calculator,If one then explain how.
Prior to this question I had said that Multiple Inheritance has a disadvantage of name ambiguity.(hence above was the counter question by an interviewer)
|
|
|
|
|
This question is not clear. In COM interfaces can only be derived from one base class. IUnkown is an interface. Calculator clearly isn't a COM interface as it uses multiple inheritance. This suggests that this is an implementation hierarchy: Calculator is a C++ class that is using multiple inheritance to implement COM interfaces. It's still not clear what ADD and Multiply are. Their names suggest they are not interfaces. This question is too vague.
Steve
|
|
|
|
|
ADD and Multiply Are Interfaces
|
|
|
|
|
Then there is one implementation for each. This is how multiple inheritance works in C++.
Steve
|
|
|
|
|
Hi!
Perhaps it's a silly question, but at the moment I'm really stumped:
I need a window to receive messages from a different application for synchronisation purpose.
In order to have an easy way of showing which messages were received, I've created a dialog (CDialog derived) with a ListBox to trace the messages.
Because I want to use SendMessage(HWND_BROADCAST,...) (and not explicitely find out the hWnd of my dialog), I'd have to make the dialog a TopLevel window.
Unfortunately, I've completely failed to achieve this so far. I thought creating the dialog without giving a parent window would create a TopLevel window, but obviously I was wrong - my SendMessage wasn't received and Spy shows a parent window for my dialog...
Can anyone please give me a little push in the right direction?
Regards,
mav
--
Black holes are the places where god divided by 0...
|
|
|
|
|
mav.northwind wrote: Unfortunately, I've completely failed to achieve this so far. I thought creating the dialog without giving a parent window would create a TopLevel window, but obviously I was wrong - my SendMessage wasn't received and Spy shows a parent window for my dialog...
SetWindowPos(&wndTopMost, 0, 0, ....) creates a top most window. Is this what you want.
Nibu thomas
A Developer
Programming tips[^] My site[^]
|
|
|
|