|
I think you mean this:
When we double-click at the left-most position on a window's title-bar, the default action takes place. In case of explorer, the window closes.
That is: Click on it once, the pop-up menu shows up half a second later, but double-click on it, the window closes.
Now you want to do the default action when the user double-clicks on the icon.
Set a variable to true on first mouse-click, and start the timer. You could set the timer, like 500 ms. When the time expires and the timer function runs, it sets the variable back to false, kills the timer, and shows the menu.
Now if the user clicks, then before the timer function can run, he clicks again, then you kill the timer, set the variable back to false, and do the default action: Like in case of explorer: 'close the window' etc.
I hope I understood you, and I hope you understood this.
this is this.
|
|
|
|
|
|
Now I think I know what you mean.
You want to dismiss the popup sys-menu when the user clicks in the area again, 'when the menu is showing'.
I don't how to do that, but you could search on that: "dismiss sys-menu" or "How to find out if the sys-menu is visible". I am too lazy right now.
Or you could remove the Title-bar from the application, and custom-draw the Title-bar yourself. Then it would be very easy to handle the menu stuff.
Try the following: (If it is even possible ??)
You could set a variable to true when the sys-menu shows, and set it to false when window loses focus, or user clicks somewhere else, or uses the keyboard to dismiss the menu etc. Now if the user clicks again, then check that variable. If it is already true, then try to close the menu using some technique. (You have to first be able to tell whether the sysmenu is showing or not to continue on this path. Then later find some way to dismiss it).
this is this.
|
|
|
|
|
In an application, a blunt window got opened and i'm not able to close it. everytime i use the application, i accedently open this window, which stays adamantly and i had to use Taskmanager everytime to close it.(closes the entire app). now i used spy++ to get the handle of the window, and in my program i sent like
HWND Hand = (HWND)0x002106C8;
SendMessage(Hand,WM_QUIT,0,0);
And in the Spy++ i'm able trace the message is being received by the window. but its not giving up. its still staying there. How to close it forcibly? someone tell me ..its still there i need to kill it.
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
|
|
|
|
|
try with WM_SYSCOMMAND and wparam as SC_CLOSE
like
PostMessage (WM_SYSCOMMAND, SC_CLOSE, 0)
worked???
|
|
|
|
|
its still there. the message received by the application is WM_NCDESTROY.
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
|
|
|
|
|
T-1000 wrote: WM_MCDESTROY
Or
WM_NCDESTROY
Love Forgives--Love Gives--Jesus is Love <marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" style="background-color:'#44ccff'">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
what are you talking about??
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
|
|
|
|
|
Which application is that ?
did you develop that application?
-Prakash
|
|
|
|
|
Mr.Prakash wrote: did you develop that application?
ROFL LMFAO
|
|
|
|
|
it's not mine . its a tool used here.
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
|
|
|
|
|
Does this window respond to Alt+F4 or Ctrl+F4 ? If yes, then you could try sending it WM_CLOSE message.
You could also send a WM_SHOWWINDOW with wParam = 0; and lParam = 0;
this is this.
|
|
|
|
|
it didn't respond to F4s ,i also tried with WM_CLOSE, it didn't work. i'll try with WM_SHOWINDOW. for the moment i've closed it using taskmanager.
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
|
|
|
|
|
The window is tracing the message send to it and
has a filter to check who sends it the message.
You can try killing the thread which holds the
window.
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
T-1000 wrote: In an application, a blunt window got...
What's a "blunt window?"
"The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb
|
|
|
|
|
without the control boxes, min, max.. it has a "close" button but i think, nothing is handled for it... anyway how do you forcefully close a window david?, for example how the Taskmanager terminates the application window?
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
|
|
|
|
|
T-1000 wrote: for example how the Taskmanager terminates the application window?
For applications, it sends the window a WM_CLOSE message. For processes, it calls TerminateProcess() .
"The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb
|
|
|
|
|
Thanks david.
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
|
|
|
|
|
Can anybody tell me how to write (offline) a avi-file using the DirectShow interfaces?
I like to write an avi file composed of a series of bitmaps. Which DirectShow-COM-object/interface do I need?
Best regards,
Peter
|
|
|
|
|
How to set my result again to editbox o that Result editbox shows the
result.
|
|
|
|
|
CString temp = "Result";
m_edit.SetWindowText (temp);
OR
If u have member varibale of edit box
m_edit_var = "Result"
call UpdateData!!!
OR
SetDlgItemText()
Anil
|
|
|
|
|
anilFirst wrote: If u have member varibale of edit box
m_edit_var = "Result"
call UpdateData!!!
Actually, if the variable is a CEdit object, UpdateData() should not be used. Perhaps you meant to use a CString object instead.
"The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb
|
|
|
|
|
How I collect data from editbox to variable declare for it.
|
|
|
|
|
Add a member variable to the edit box by using class wizard (VC++ 6) or right click on the edit box in design mode and click add variable(VC++ .NET). The value of the editbox will be available in this variable. Before you want to fetch the value in the editbox, Call UpdateData(TRUE);
Regards,
Rajesh R. Subramanian
You have an apple and me too. We exchange those and We have an apple each.
You have an idea and me too. We exchange those and We have two ideas each.
-- modified at 1:36 Friday 6th January, 2006
|
|
|
|
|
Thanks Rajesh
|
|
|
|