|
Hi everybody ,
I have an application with a tray icon and i have a popup menu , which pops up when the user right clicks on the tray icon.My problem is that when the popup menu is displayed it does not disappear until i click on any of the items.
For example if the popup menu is displayed and i click , for example on start button or anywhere else except the popup menu client area, the popup menu still remains...and i want that it dissapeared like the normal popup menu does.
Can anybody help ???
Thanks in advance
m0n0
|
|
|
|
|
Try giving SetForegroundWindow() before TrackPopupMenu
« Superman »
|
|
|
|
|
I've done it but it did not help
...
m_menu.GetSubMenu(0)->TrackPopupMenu(TPM_RIGHTBUTTON,pt.x,pt.y,this);
PostMessage(WM_NULL)
...
thanks anyway ,
now i added also SetForegroundWindow() function and now it works
|
|
|
|
|
I have solved this problem :
i had to write this :
SetForegroundWindow();
m_menu->GetSubMenu(0)->TrackPopupMenu(TPM_LEFTBUTTON ,pt.x,pt.y,this);
PostMessage(WM_NULL,0,0);
instead of only writing
m_menu->GetSubMenu(0)->TrackPopupMenu(TPM_LEFTBUTTON ,pt.x,pt.y,this);
m0n0
|
|
|
|
|
Hi all,
I'm working in an application that has a main dialog and a CPropertySheet embedded in it. The tab order between the dialog and the CPropertyPages works fine so I can pass the focus through all the controls of the application perfectly. When I insert an OCX component inside a PropertyPage (I need this OCX to communicate with an another device) the tab order between the main dialog and the CPropertySheet fails: when the focus enters into a PropertyPage the focus cannot return to the main dialog and remains inside that propertypage.
Any ideas of what's happening?
Marc Soleda
|
|
|
|
|
Anybody can tell me what this for below:
pnl_btn::draw2..
pnl_btn::draw...
edit ....
10..pnl_edit::draw..
pnl_inp::draw...
pnl_lst::draw...
pnl_lst::draw_highlight_bar.
message panel
pnl_msg::draw
pnl_msg::render_to_image_buffer
%s.bmp
pnl_pic::draw
pnl_scbr::draw
pnl_txt::word_wrap_append
pnl_txt::draw
pnl_txt::draw_background2
pnl_txt::draw_background
pnl_txt::draw_border
pnl_txt::get_text_rect
After all, Today is the Tomorrow you worried about Yesterday
|
|
|
|
|
|
within EXE file of a game
After all, Today is the Tomorrow you worried about Yesterday
|
|
|
|
|
ohhhh ohhhh, ok, i see what you mean
you are not on the right forum actually, 'cause you are talking about managed code generated for .NET Framework...
in fact, what you extracted (certainly with ldasm.exe) describe the declarations, but i can't say more till there's not the rest of the code...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
managed code generated for .NET Framework...
What do you mean??
do you want me to send u more code stuff.
You know that the idea is I wanted to know "what function calls a chat message box" within this exe file
After all, Today is the Tomorrow you worried about Yesterday
|
|
|
|
|
i just say that you can't find such code lines in an exe file unless it is compiled for the .NET framework...
how did you get these lines ? with ldasm.exe , didn't you ?
where does the code you extracted come from ?
hemm, do you know .NET framework ???
if not, do you code under Visual Studio 6 (or previous) or 2003/2005 ?
what kind of solution do you compile for ?
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
I used 010 editor this programe 010 Editor "is a powerful hex editor designed to quickly and easily edit binary files."
No I do not know .NET framework!
I'am trying to learn Visual C++ version 6.0
HERE is some things I found in 010 editor
--------------
GetKeyState
PostQuitMessage
KillTimer
SetWindowTextA
SetCapture
ReleaseCapture
GetCapture
SetWindowLongA
PostMessageA
GetActiveWindow
WinHelpA
ClientToScreen
DSetRect
MessageBoxA
(SetCursorPos
CGetSysColor.K.SetSysColors..V.GetWindowLongA...MessageBeep...GetFocus....MoveWindow....CallWindowProcA...DrawTextEXA...GetCaretBlinkTime.<.CloseClipboard...IsClipboardFormatAvailable....DrawTextA...getForegrundWindow...GetAsyncKeyState....GetKeyboardState..USER32.dll..S.DeleteObject..%.GetDeviceCaps.U.GetTextMetricsA..SelectObject..7.CreateFontIndirectA.
Note: "..." indicate hex 00 00 00
After all, Today is the Tomorrow you worried about Yesterday
|
|
|
|
|
wow, you're far from you goal buddy
you won't find what you expected like this !!!
what you see is effectively the functions called from the program, but these are only graphics ; and even if you find class member functions, what will give you the context it is used actually ?
the only thing i can assure you with that code, is that it is written with MFC !!!
and that's all !
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
If it is written with MFC !!!
What are the function I should look for that trigger chat dialog box
After all, Today is the Tomorrow you worried about Yesterday
|
|
|
|
|
hey, i know i don't speak english very well, but i wonder if you just understand english too...
i said that you CANNOT find such information like this (i.e. decompiling an exe).
you want to find out how to make a chat dialog box ? google for that subject ; you will find more efficient answers that what we talk here, and than what you do with that poor exe...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Hey toxcct:
I believe that your poor English is what made me to be confused. I tried to follow what you wrote in all previous messages and found out that you asked too many questions not related to the original thread which led us to a ded wall. I sugest.. when you try to reply to a subject please stick to content of the subject.
After all, Today is the Tomorrow you worried about Yesterday
|
|
|
|
|
looks like classes and methods for a drawing program of some sort .
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
pnl_lst::draw_highlight_bar.
message panel
------------------
is this means to draw a message sort of thing
After all, Today is the Tomorrow you worried about Yesterday
|
|
|
|
|
Respected All
Regards!
I am David from Denmark and very S/W developer in VC++ world.
I need some free stuff on VC++ in the form books and also some sample developed application in VC++ which is helpfull for begginners.
Waiting for possitive response.,
david
|
|
|
|
|
There are tones of samples here on CP , Look for the ones's you need ...
You can also visit ThisSite
m0n0
|
|
|
|
|
Hi all!
I m using an open source project. When i start building the project files, first an executable (.exe) is run before build & upon its execution, the project files are built. This .exe has been included in the project's main directory.
Now, i wanna know how this project is accessing the .exe file before the start of the build process.
Is there any file (in case of MSVC 6.0) that needs to be looked for? or any other project settings, from where i can see that .exe's linking to the project?
Usman Arif
|
|
|
|
|
Check the prebuild steps in the project settings
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Can anyone point me to some good article on parsing the HTML. My aim is to parse an online webpage and extract a table from it and insert to local DB.
I think will have to use MSHTML. Any good article would be of great help.
Thanks in advance
|
|
|
|
|
here
Pssst. You see that little light on your monitor? That's actually a government installed spy camera. Smile and wave to big brother!
|
|
|
|
|