|
I have written a explorer type of application with CTreeView/CListView and Splitter bar etc. On the ListView I have added a popup menu from which I then display a CDialog with DoModal(). The dialog displays fine but the mouse events aren't being captured, so cannot click on the OK/Cancel/Close icons. I can click select the OK/Cancel buttons using the tab key, but why isn't the mouse usable?
Hoping someone can advise where I have gone wrong.
|
|
|
|
|
dialog part of listview (parent)?
Kuphryn
|
|
|
|
|
Thanks but I am still no further forward. I have created an SDI Explorer application using the application wizard, from the EditView derived from the CListView I have added a popup menu from one of the menu events I am showing my CDialog based dialog with DoModal(). The dialog shows OK but the mouse events aren't being captured! I have tried all sorts of ways of trying to resolve this but nothing has worked so far.
|
|
|
|
|
It sounds like something has failed to release the mouse capture, which is set with SetCapture and released with ReleaseCapture .
Software Zen: delete this;
|
|
|
|
|
Thanks for your help. I sorted it earlier today, by calling ReleaseCapture() just before the DoModal(), as you suggest. Solved it.
Thanks once again for you help though. This forum is brilliant when you just cannot solve a particular problem.
|
|
|
|
|
Hello all. I want read/write the CMOS in Windows NT or later. I've knew that is necessary use a driver. Then I would like to know if there is a driver of the Windows that I can call, so that I don't need develop a driver?
Thanks all.
|
|
|
|
|
how can we determine about all communicating sockets on our system.
|
|
|
|
|
|
I would like to open MS Word 2003 via api and send text to it. After that the user should edit the text in word and I would like to catch an event when the document is saved. Would like to do this via com. All examples I found about this belong to office 97 and doesn't work anymore. Does anyone can tell me where to find an example for automation in Office 2003?
|
|
|
|
|
I think you can use Microsoft Word Object library for the same.
open OLE viewer provided with visual studio tools and open the interface tab.
you can find the requried one there.
I think codeproject has some article on the same.
Pls check it.
it is not depends on VC++ 2003 or VC++ 6. u can use either.
SaRath.
"Don't Do Different things... Do Things Differently..."
Understanding State Pattern in C++
|
|
|
|
|
Is there a way that we can know all exposed functions and their signatures and exposed data items which dlls and lib files expose, if we donot have any documentation about them, something like resource hacker.
|
|
|
|
|
use dumpbin utility
Loka Samastha Sukhino Bhavanthu..!!!
( May all beings be happy and free )
|
|
|
|
|
You can use DumpBin[^] utility provided by Microsoft. This is console based application
You can use "Dependency Walker" which is provided with Visual Studio tools for the same purpose.
SaRath.
"Don't Do Different things... Do Things Differently..."
Understanding State Pattern in C++
|
|
|
|
|
While dumpbin and depends can show the export table, they will not show you the function signatures.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
|
Michael Dunn wrote: ...Depends can translate those into C++ prototypes.
Return type and argument list included?
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Yes, because all that info is encoded into the mangled name. For example:
?ConcatInPlace@CString@WTL@@IAEXHPBD@Z becomes:
protected: void __thiscall WTL::CString::ConcatInPlace(int,char const *)
--Mike--
Visual C++ MVP
LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
|
|
|
|
|
What DLL is that contained in?
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I just pulled that from a MAP file of one of my apps. I was just demonstrating that the mangled name contains all the info necesary to convert it to a C++ prototype.
--Mike--
Visual C++ MVP
LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
|
|
|
|
|
So does Depends also use said .map file, or how does it generate the function's signature?
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
It's all encoded in the mangled name. You can see for yourself using the undname tool in the PSDK:
F:\>undname -f ?ConcatInPlace@CString@WTL@@IAEXHPBD@Z
Microsoft(R) Windows NT(R) Operating System
UNDNAME Version 5.00.1768.1Copyright (C) Microsoft Corp. 1981-1998
>> ?ConcatInPlace@CString@WTL@@IAEXHPBD@Z == protected: void __thiscall WTL::CString::ConcatInPlace(int,char const *)
--Mike--
Visual C++ MVP
LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
|
|
|
|
|
Thanks Mike, but that's undname, not Depends.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
hi friends,
i'm reading one "character" at time from RS-232 interface and storing it in a character array.I'd like to know whether any in-built functions are there to convert this "single character" into its ASCII hexadecimal eqivalent??
Thanks in Advance...
Rajeev
|
|
|
|
|
rajeev82 wrote: in-built functions are there to convert this "single character" into its ASCII hexadecimal eqivalent??
Hexadecimal equivalent is not something very clear. What do you want to do ? Print this value in a string (using its hexa representation) ?
If yes, you can use printf with the 'x' tag:
char szString[50];
char Temp = 'A';
sprintf(szString,"%x",Temp);
Because a number is neither hexa, decimal nor binary, it's just its representation that can change.
EDIT: changed printf to sprintf, thanks David
Cédric Moonen
Software developer
Charting control
|
|
|
|
|
rajeev82 wrote: ...are there to convert this "single character" into its ASCII hexadecimal eqivalent??
For what purpose? Usually when someone talks of converting from base-10 to base-16, it is for display purposes. When a number is stored, its base is irrelevant. In other words, 123, 0x7b, and 1111011 all represent the same number.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|