|
Hello
I tried to implement your code for the hyperlink text into mine. Ummm, it almost works... but when I put my mouse over the static text it is not changing the ptr to a hand. And if I click on it, it is not doing anything. I was wondering if you have any ideas? It is displaying the text as a hyperlink, its just not behaving like one.
Thanks for any advice.
|
|
|
|
|
Check out CHyperLink in WTL. There is a also a hyperlink common control, available on XP and later.
|
|
|
|
|
|
WhiteSky wrote: see http://www.codeguru.com/
|
|
|
|
|
Spell-check it again whitesky ..
:Gong: 歡迎光臨 吐 西批 :Gong:
|
|
|
|
|
Hey thanks for the suggestion of using CHyperLink. The solution was dead simple. It was only about 3 lines of code ! !
Goes to show what an elegant solution it is !
|
|
|
|
|
Anyway , welcome
:Gong: 歡迎光臨 吐 西批 :Gong:
|
|
|
|
|
Paul DiLascia was among the first to develop something like that and he wrote about it in a MSDN Magazine article. See his PixieLib.NET MFC Class Library[^] and look for the CStaticLink.
|
|
|
|
|
Hi
I am having some trouble - I have an application (a dialog) that is called from another application via the command line.
I know how to make a modeless dialog box from an MFC app but how would i make my application modeless as it is assuming the application window that calls it to be its parent and blocking all interaction with the parent.
maybe this will help:
A window within an application passes run cmd1 cmd2 cmd3 via the command line - this runs my program. But my program opens modal and blocks interaction with the calling window.
I need my application to be modeless.
Is this possible and if so any got any hints?
Cheers
Dan
|
|
|
|
|
DanB1983 wrote: A window within an application passes run cmd1 cmd2 cmd3 via the command line - this runs my program
which command are you using to launch the 2nd application ?
|
|
|
|
|
The DOS command is just browser l t r b title
If you mean the command in code - it was dlg->doModal() until I was asked that it not be modal - So now i have to use dlg->create() but of course doModal took care of my msg loop so it just creates its self and then clears off as Initinstance ends.
This is no doubt only a problem due to lack of experience so any help is much appreciated
Thanks
|
|
|
|
|
sorry, i'm not sure what's going on here - are you launching a modal/modeless dialog, or are you spawning another application, or both ?
|
|
|
|
|
Sorry it's my fault for being unclear - what happens is that an external application spawns my application by calling it from the command line.
My application is not running - the external application runs its executable from the command line.
I need it to spawn modeless.
Hope I am a little clearer in this explanation.
Thanks for your patience.
Dan.
|
|
|
|
|
do you have any control over how the external application launches your app ? because that's where the modal behavior is coming from.
if you can't change that application, maybe you could do something like this: write a small stub application that launches your application via CreateProcess and then exits immediately. that will sever the tie between the external app and your app.
|
|
|
|
|
So when my application call the function doModal - does this not actually create it as modal?
Sorry - I feel I am struggling with a simple concept here
Thanks
Dan
|
|
|
|
|
DanB1983 wrote: So when my application call the function doModal - does this not actually create it as modal?
if your application calls DoModal, it will create a modal dialog. that won't affect how your application interacts with the external application or any of its windows, though.
|
|
|
|
|
DanB1983 wrote: If you mean the command in code
No, He means, how you are invoking this dialog application from other application.
For instance, one way is using ShellExecute .
If this is what you are doing, then should not be any blocking.
|
|
|
|
|
The other application creates a window, creates a process for that window and then passes a commandline argument to the window that fires up my application.
I don't have the code as it is not my application.
What is happening is my application is then opened up, however it is a dialog and is in modal form - using dlg->doModal().
I would like for it to be modeless and hence use dlg->create() but how do I deal with msgs etc if I want to do this?
Cheers
Dan
|
|
|
|
|
I am getting problem in recording audio in WMV file using WMEncoder using IWMEncoder2 interface. I am getting access voilation for LAME.ACM.
I am not getting what's going wrong. Ifyou have any suppotring links please reply back.
cheers
"A winner is not one who never fails...but the one who never quits"
|
|
|
|
|
Without seeing any code it's tough to guess.
How are you using an ACM codec with Windows Media Encoder?
|
|
|
|
|
Hello,
I have declared a union named 'db_rawCB' and there are in all 20 strucutres in this union.
But i am getting some compilation error which says "error C2621: member 'db_rawCB::close_info' of union 'db_rawCB' has copy constructor"
Now here 'closeinfo' is a structure which includes a class in it.. i guess this is the reason why i am getting above error.
Can anyone of you please suggest me the solution of this problem.
|
|
|
|
|
|
not use a union, union are evil in C++.
or replace the class by a structure and allocate it with malloc instead of new, and removing all member functions from the class and make them free functions ?
|
|
|
|
|
You can't have union members that have copy-constructors. Your best bet is to make the union member a pointer to a class.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
It doesn't make logical sense for a union to contain a class with any constructors or destructors: how would the compiler know which constructor/destructor to call?
-- modified at 19:41 Wednesday 13th December, 2006
Or classes with virtual functions: how would the compiler know how to initialise the v-table pointer.
Steve
|
|
|
|