|
In my application developed using Visual C++ 2010 (MFC), a popup window is created with its parent window to be the Desktop. I want itself to track its position change by defining OnLButtonUp(...) function. (I want this happens only when the movement complete) However, when I drag the window to another place and release the L-button, this function is not called. I can see WM_LBUTTONUP message was POSTED to this window using Spy++.
This function is not called when I click on the window's client area.
I also tried using OnNcLButtonUp(...) with no luck.
Anyone can advise what is the reason, or it is just a wrong approach?
This window does not have its WindowProc(...) function defined. Can such a function help?
Thanks in advance!
HW
modified on Thursday, March 10, 2011 12:17 PM
|
|
|
|
|
You have posted this in the C++/MFC forum. Does that mean you are using MFC? If so, then check your message map, to make sure you have an entry for WM_NCLBUTTONUP .
|
|
|
|
|
Thank you for your suggestion. My message map was fine.
My problem was solved by processing WM_EXITSIZEMOVE message, that is sent when the window completes its movement, in my WindowProc function.
The document of WM_EXITSIZEMOVE message suggests that some of the messages sent/posted between WM_ENTERSIZEMOVE message and WM_EXITSIZEMOVE message are processed by DefWindowProc function(Please correct me if I am wrong).
HW
|
|
|
|
|
May be you can try ON_WM_WINDOWPOSCHANGED( ) for tracking position
|
|
|
|
|
Thank you for your idea. I have tried what you suggested before but failed too.
My problem was solved by looking WM_EXITSIZEMOVE message that is sent when the window completes its movement.
HW
|
|
|
|
|
Has anyone experienced a memory leak when using lc_set_attr to specify the location of a license file?
This line gives me a memory leak that looks like a directory path leak:
lc_set_attr(lm_job, LM_A_LICENSE_FILE, (LM_A_VAL_TYPE) licfile )
Memory Leak:
{311} normal block at 0x01A8D3D8, 52 bytes long.
Data: <;C:\Program File> 3B 43 3A 5C 50 72 6F 67 72 61 6D 20 46 69 6C 65
The memory leak disappears if I don't set that attribute... and the attribute string isn't the one leaked (placed a dummy string to see if it would pop up on the debugger).
|
|
|
|
|
You might get better response by asking on forum specific to flexlm.
|
|
|
|
|
true, but its also one of the most common licensing tools out there...
|
|
|
|
|
Well, in that case, why haven't you written an article about it?
|
|
|
|
|
...I can't even figure out why this simple attribute change is causing a memory leak!
|
|
|
|
|
hi everybody, i code in language C and i want to choose a graphics library,where i can draw a graph(a graph is an abstract representation of a set of objects where some pairs of the objects are connected by links. The interconnected objects are represented by mathematical abstractions called vertices, and the links that connect some pairs of vertices are called edges)
please help me , if someone was confronted to this .
|
|
|
|
|
Well here's one way to start
#include <GdiPlusGraphics.h>
Chris Meech
I am Canadian. [heard in a local bar]
In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]
posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]
|
|
|
|
|
Hi, I have an application written in MFC.After some calculation i have to show the results in html file.how to generate a HTML through program.
|
|
|
|
|
Are you familiar with the html tags. If affirmative, you can use the tags and write them to the file alongwith the result. The html file can be opened in HTML view.
I am a HUMAN. I have that keyword in my name........
_AnsHUMAN_
|
|
|
|
|
Try one of the MFC controls, perhaps one of these[^].
I must get a clever new signature for 2011.
|
|
|
|
|
|
FILE *fp = fopen(filename, "w");
fprintf(fp, "<html>\n<body>\n");
fprintf(fp, all your data goes here);
fprintf(fp, "<\body>\n</html>");
fclose(fp);
|
|
|
|
|
GetNetworkParams failed in windows server 2003
Trioum
|
|
|
|
|
What is the return value?
I am a HUMAN. I have that keyword in my name........
_AnsHUMAN_
|
|
|
|
|
|
Your problem description is really not very detailed. Do you expect people to guess what is going on in your program?
I must get a clever new signature for 2011.
|
|
|
|
|
Per MSDN:
If the function fails, use FormatMessage() to obtain the message string for the returned error.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather
|
|
|
|
|
Hi,
I want to implement a functionality in which when i click F2 on any Treeview item, it should display the Tooltip for that item (This is possible generally).But in Tooltip the text should be in tabular format and also should allow me to edit the value of the item text.
Please let me know if anyone has implemented this.
I am not sure whether its feasible or not...Please if anyone has any other idea which we can implement to achieve this functionality.
Thanks,
Nikhil
|
|
|
|
|
Hi,
I want to implement a functionality in which when i click F2 on any Treeview item, it should display the Tooltip for that item (This is possible generally).But in Tooltip the text should be in tabular format and also should allow me to edit the value of the item text.
Please let me know if anyone has implemented this.
I am not sure whether its feasible or not...Please if anyone has any other idea which we can implement to achieve this functionality.
Thanks,
Nikhil
|
|
|
|
|
Nikhil Sisodia wrote: the text should be in tabular format and also should allow me to edit the value of the item text. An easy way to do this would be to pop up a dialog box that contains a CListCtrl. The CListCtrl could have editable subitems. There are several articles on Codeproject on how to do this.
|
|
|
|