|
I suppose you have use owner drawn menu option to design your menu.
nss
|
|
|
|
|
If you are using Visual Studio 2008 with the Feature Pack (new ui stuff) you can use CMFCMenuBar::SetRecentlyUsedMenus for individual applications.
There's a setting in the for the taskbar/start menu that, I think, set the global behavior for all applications.
(on vista, so it might not be the same on XP or W7)
"Control Panel" -> "Taskbar and Start Menu" -> select "start menu tab" :
If you select the "Classic Start Menu" and click on Customize, you can check/uncheck the last option in the list "Use personalized menus" to change the behavior.
Google for "personalized menus" for more informations.
This signature was proudly tested on animals.
|
|
|
|
|
No, I'm using 6.0. If I upgrade to VS2008, this feature will come by default.
Thanks for your reply.
|
|
|
|
|
Hi all,
I am working on a MDI application. Below is the problem description:
Initially the application shows a child window(say child1) as restore. User maximize the current window
and after this try to open other child window(say child2) using Windows menu. Here start the problem.
Application hang over here. and the application doesn't show any thing for child2.
I think it is something related to the window refresh.
Can anybody please help me out in this.
Thanks,
Smith
|
|
|
|
|
Maybe if you edit your post and add some code related with it...
Regards.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
one more thing I want to add, application is running fine, if all the windows are restore.
problem starts only on maximizing any window.
Here are the steps.
1. Start the Application, a child window(ch1) will be open in normal shape.
2. open other window using windows menu ,Application will try to open it in Maximum size.
3. if the child window ch1 is in normal size no issue, but if the child window ch1 is maximized,
application will not show the new opened window properly.
4. if now you will resize the child window ch1. Application will again work properly.
modified on Thursday, February 4, 2010 3:37 AM
|
|
|
|
|
I use CNewMenu V1.23 to pop up a context menu. It is working fine under most of situations, except the situation when the screen is locked by winlogon.
The symptom is that it pops up only a black rectangle, as the screenshot in below link.
Screenshot[^]
The step to reproduce is:
1) Keep the application window open.
2) Press Ctrl-Alt-Del, and choose "Lock this computer".
3) Have the application pop up the context menu. In my case, it is the hardware signal input as the trigger.
4) Input Windows password to unlock the screen.
5) The popup menu is black (blank).
CNewMenu::DrawItem was only invoked when the menu was popping up. And the parent window (the owner of the menu) is still stuck by the call CMenu::TrackPopupMenu . There is no signal to let the menu repaint / redraw at the moment the screen is being unlocked.
Is there any method to cause the menu to update?
Maxwell Chen
|
|
|
|
|
This'll be because that thread is in a modal loop handling messages to do with the menu and so never gets the unlock message. And let's be honest, popping up a context menu on an asynchronous, non-user trigger is bad, m'kay? If the user is doing something else at the time, you're really upsetting their sense of what's happening, which is going to really going to get on their nerves...
Why not start some sort of attention seeking notification (a pulsing icon, say) when the hardware trigger comes in and let the user access the context menu when they want to. Applications that are too pushy are a PITA...
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
CodeProject MVP for 2010 - who'd'a thunk it!
|
|
|
|
|
It is an audio application. When user plugs in a jack, this application window is brought to foreground, and asks the user to choose the type of the device (PC speakers, headphone, or mic) which the user is plugging in.
Just like the way you plug in a USB disk, you see a popup dialog box for choosing something.
Of course user can decide not to choose any when it pops up the menu.
Maxwell Chen
modified on Thursday, February 4, 2010 2:47 AM
|
|
|
|
|
I would suggest using some mechanism other than a menu...
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
CodeProject MVP for 2010 - who'd'a thunk it!
|
|
|
|
|
I think the reason my colleague chose to use the owner draw menu was because it could be placed at the desired position. As the example in the sample screenshot[^], it indicates the choices are for the 3rd port (the donut icon), not for the 1st and the 2nd port.
Maxwell Chen
|
|
|
|
|
You can position any window the way you can a menu.
The main issue is the modal message loop the menu enters. That's what you need to workaround somehow.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
CodeProject MVP for 2010 - who'd'a thunk it!
|
|
|
|
|
OK. Thanks for your suggestion.
Maxwell Chen
|
|
|
|
|
Hi All
i am stuck to establish connection with server machine with oracle.I am able t connect with oracle in local system(single pc) through this code.
_ConnectionPtr m_pConn;
CString Connectionp="Provider=OraOLEDB.Oracle;PLSQLRSet=1;Data Source=orcl";
HRESULT hr = S_OK;
hr=m_pConn.CreateInstance (__uuidof (Connection));
hr=pCommand.CreateInstance (__uuidof (Command));
m_pConn->Open (_bstr_t (Connectionp),bstr_t(system),bstr_t(password),adModeUnknown);
How can i connect to server machine?Please help me
|
|
|
|
|
The Data Source - orcl is probably configured for the local machine.
Change it to connect to the server.
|
|
|
|
|
Thanks for reply....
it means oracle must be install in local machine.
There is any more connection string to connect with server machine.
|
|
|
|
|
get your Oracle DBA to give you the correct tnsnames.ora settings for the server DB instance - say he gives it to you and its 'dbprod1' - paste the settings into your tnsnames.ora, then replace 'orc1' in Data Source=orcl with, for example, dbprod1, so you get Data Source=dbprod1 as the end part of ie
CString Connectionp="Provider=OraOLEDB.Oracle;PLSQLRSet=1;Data Source=dbprod1";
'g'
|
|
|
|
|
|
I am way new to cryptography. I have figured out how to decrypt an mpeg file. I now need to authenticate the images. I have a certificate embedded in the decrypted image file along with an "R" and "S". What are the steps to pull the "P" (prime) out of the embedded certificate and verify the signature? I'm on a windows xp sp3 platform using Visual Studio 2008 sp1.
Thanks.
|
|
|
|
|
|
Thanks for the reply. I was able to get as far as I can by using MSDN Cryptography pages. So far I havent been able to find specific instructions/examples for authenticating the images of a decrypted file.
|
|
|
|
|
Hi All
How can i get url monitor?If url open in Internet explorer or mozilla etc i want to make log file of open url.
|
|
|
|
|
Don't you like the browser's history feature?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
yes i think it's solve my problem.how can i get browser's history?
|
|
|
|
|
It is browser-dependent. A quick search gave me the follow pages for Firefox and Internet Explorer [^], [^]. There's also the CodeProject's article: "Access Internet Explorer's History in MFC".
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|