|
thancks alot
Iman Ghasrfakhri
|
|
|
|
|
I have a system tray icon that displays a menu when you right click on it, but it doesn't disappear when you click elsewhere on the screen.
To make it disappear you have to click an item on the menu.
Does anyone know why this is happening?
Thanks
|
|
|
|
|
How are you responding to the right-click?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
pSubMenu->TrackPopupMenu(0, pos.x, pos.y, pMainWnd, NULL);
|
|
|
|
|
What happens if you specify TPM_LEFTALIGN as the first parameter?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
It doesn't seem to do anything, and even if it does it doesn't help.
Any other ideas?
Thanks
|
|
|
|
|
I had exactly the same problem a while ago. Search the microsoft knowledge base for Q135788 to get
the explanation.
...Create menu hMenu...
SetForegroundWindow(hWnd);
BOOL nReturn = TrackPopupMenu (hMenu, TPM_NONOTIFY | TPM_RETURNCMD | TPM_LEFTBUTTON, pt.x, pt.y, 0, hWnd, NULL);
PostMessage(hWnd, WM_NULL, 0, 0);
Iain.
|
|
|
|
|
I'm trying to localize a Windows installer package (.msi) built with VS.net 2003. I followed the steps written in MSDN.
However, only the "Preparing to install" dialog is displayed in the localized language, the rest of the installer is still in English. The language/codepage ID's seem to be OK, the localized strings are also in the MSI.
Have anyone ever met this problem? Any tips?
|
|
|
|
|
Hello, I need to merge cells (2,2) and (2,3) in a word document doing word automation with visual c++.
It makes two weeks that I am trying to do this and I haven`t got any results.
Thanks
|
|
|
|
|
I have an algo which takes in an iterator range like Func(I beg, I end).
These are randomaccess iterators so I can do stuff like beg[i] which gives me back the ref to the ith element of the underlying container:
T& t = beg[i].
Now inside the algo I want to swap the contents of say beg[i] and beg[j], and all I have info about is the range. I dont have any info about the type T within my algorithm.
However to do a swap I need a temporary variable to store one of the values :
T& temp = beg[i];
beg[i] = beg[j];
beg[j] = temp;
However, as I said, theres no info on T coming into the algo, so how would I swap the contents using these randomaccess iterators since I very well cant define a 'temp'?
thanks,
ns
|
|
|
|
|
and why you don't use std::swap() ?
Robert-Antonio
"A flower walked around a meadow. She saw a beatiful human and plucked off his head."
|
|
|
|
|
|
T& was your problem. Make it T. But std::swap is better anyways.
John
|
|
|
|
|
std::swap was good.
But see, I couldnt use anything to do with T within my generic algo which has signature Func(I beg, I end), since only the range is coming in, not the type in the container.
Thanks,
ns
|
|
|
|
|
I see. You must make your algorithm a template function to do this.
template<class T>Func(I beg,I end)
John
|
|
|
|
|
You should've posted this link into the general section, as people use other programs than VC++ to code DirectX and Win32 applications as well. As you posted it here, it may be overlooked by some members who don't read this subsection of the forums.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
Is there method to set DeviceCaps so as if system font changed?
System font changed and all sized in a dialog too,
but I want that all sized remained same,
is it possible to make by some CDC tune or
font Dialog or else change?
(Remaining system font changed)
thanks.
|
|
|
|
|
Maybe it's the language barrier, but what exactly are you asking?
Are you wanting to change the system font?
Are you wanting to know when the system font changes?
Something else?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Sorry for not good language,
(around people was preventing me from better check, sorry,
but I will try to write better nonetheless)
System font changed by yser,
but in my CDialog I want font at screen remains not changed,
the main purpose- control's distances remains not changed,
due to they are rendered according to system font.
For this purpose is need to chnge something at CDialog.
Is it only font?
It is roughly changed - not with decimal digits as system font.
So precise in control rendering is lost.
Or I can change spme DC properties?
|
|
|
|
|
Are you wanting a dialog's font to remain unchanged no matter what the system font is changed to? I'm sure this is possible, but it totally goes against good design. The user should be able to configure their system (e.g., fonts, colors, sizes, sounds) and all applications should reflect those changes.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Bitmaps are pixel- based,
and if you want to combine Dialog controls with pixel based controls you
get either big work with it to resize pixels,
to make picture seems correct - that's main benefit.
or just by compensating font,
you can get same without big work.
Design- is agreement between concrete user and developer as sailer of system,
and additional tune is good but cost, but may fully not in need.
Or user especially want to have system untuned, due to they pay for it.
___________
You wrong - in consideration that design is feature.
"design is not feature"
___________
fascists made you joke so easily, to deceve people -
that the are not fascists really! (behind the scene, they carve people)
Be careful !!
|
|
|
|
|
None of what you said makes any sense at all. Please state the exact problem you are attempting to solve. Otherwise, any help you hope to receive will be a guess at best.
From my last two responses to you, I've asked three yes/no questions, which you have not answered. If you can answer those accordingly, I can probably be of some assistance.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Are you wanting to change the system font? -User Wnats.
Are you wanting to know when the system font changes? - No. I know: At system setup.
Are you wanting a dialog's font to remain unchanged no matter what the system font is changed to? - Yeh.
I answered you questions directly.
|
|
|
|
|
vgrigor wrote:
Are you wanting a dialog's font to remain unchanged no matter what the system font is changed to? - Yeh.
This happens by default. When you right-click on the desktop and select Properties, and then go to the Appearance tab, you'll notice that there is no provisions for changing dialog box fonts. A dialog uses the font it was compiled with. This can be changed at run-time using the technique here.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
I now creating correction of this code,
to ActiveX and modeless and common use case.
But...
Dialog uses font that system defined by size.
|
|
|
|