|
hi everyone,
good evening to all.i am having one problem with lables.iwant to change the font size of the lable how can i do it.i want to do it for indidual lables.please help me out.
THANKU,
savitri
|
|
|
|
|
See the Extras section of this article. It shows how to change the font of a static control.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi all,
Actually i am making a dialog box application in that dialog box i have made a static text box, now what i want is i'll provide value for this static box at run time. Length of text may vary. so how could i can make a variable text box.
Can anybody help me in this...
Thanks in advance
|
|
|
|
|
movewindow api could help, you have to check the size of font and do the reszing of control your self!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/codeProject$$>
|
|
|
|
|
Make it large enough so that it can contain the largest text. That's the easiest solution and you won't see the difference.
|
|
|
|
|
In MFC, you can make a so called control-variable. It is of the type of the control class (CStatic in your case) and you can call all functions of CStatic on it.
For example MoveWindows to fit to the text size.
But this, in turn, might need to affect the layout of the other controls in the dialog.
Here you might need to use a framework like resizableLib[^].
Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all. Douglas Adams, "Dirk Gently's Holistic Detective Agency"
|
|
|
|
|
I think if you used of editbox was better.
|
|
|
|
|
Hamid. wrote: I think if you used of editbox was better.
i din't understand what you intended to say?
"If it were machines, the pair_programming seem to work, but for humans it is pair_crackdown that seems to work! " - Nisamudheen
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
I said editbox is better than Static control for him,but I dont know why I got 1?
|
|
|
|
|
i adjusted that voting)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/codeProject$$>
|
|
|
|
|
Thanks.
|
|
|
|
|
While using ShellExecute(0, _T("open"), _T(strUrl.c_str()), 0, 0,SW_HIDE);
explorer is displayed with balnk page even with SW_HIDE
any idea friends
|
|
|
|
|
And the Result is? Greater than 32?
If not, did you check it with the Documentation of ShellExecute?
nShowCmd: If lpFile specifies a document file, the flag is simply passed to the associated application. It is up to the application to decide how to handle it.
So, it seems your URL-Handling application decides to open a window on error.
Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all. Douglas Adams, "Dirk Gently's Holistic Detective Agency"
|
|
|
|
|
While it has nothing to do with your problem, the _T() macro is intended for use with string literals.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
hi!
i wrote an application in visual C++ 7, where i load the msado15.dll statically in header file with #import ... from this path:
C:\Program Files\Common Files\System\ado\msado15.dll
but when i want to run my application in computer that windows installed on D drive and msado15.dll path is:
D:\Program Files\Common Files\System\ado\msado15.dll
my application can not connect to database, how can i load the dll correctly indipendent of windows installed drive?
modified on Monday, March 10, 2008 9:37 AM
|
|
|
|
|
Oh with #import directive ... Forget my previous reply below.
Try SHGetSpecialFolderLocation with the argument CSIDL_PROGRAM_FILES_COMMON to get where the "N:\Program Files\common files " is.
Maxwell Chen
modified on Monday, March 10, 2008 10:49 AM
|
|
|
|
|
the word color of a disabled CEdit is gray.
I created a new class as "CColorEdit" and handled ON_WM_CTLCOLOR_REFLECT message,
I only could change the background color of the disabled CEdit control.
The word color was always as same as the disabled color.
How can I change the word color of a disabled CEdit control??
|
|
|
|
|
Hi all,
To register my VB ActiveX dll using the command "regsvr32 mydll.dll", I dont wanna run this command through a command prompt. Instead i want to run this command from a VC++ Win32 Console application.
The situation is that, I am making use on one VB ActiveX dll in one of my Win32 console applications. Now I want to know if there is any idea you guys could suggest me on how to run the regsvr32 command from this project. Say is there a way I could add a .bat file to the project which has this command? Hope I am clear in my problem.
Regards
Swapna Reddy
|
|
|
|
|
In general, you can do those kind of things with an installer. I heard that InnoSetup[^] is quite good (plus it's free).
|
|
|
|
|
Thanks for the reply.I was wondering if there could be any problem when i try running it on some other machine other than what i would be using where i would have registered the dll. Something attached as a part of the project. Like i mentioned in my first post,a .bat file which has shell commands or an option provided in the IDE itself which probably i was not able find out.Guys is that possible?
|
|
|
|
|
may be the previous similar thread helps register dll programmatically[^]
if you used commands on IDE, it is useful in the development machine. If you have so many files installation projects will help.
|
|
|
|
|
DLLServerRegister() will register the DLL but am not sure how it is used. According to me , It cannt be used to register VB ActiveX dll. If it is possible to register Visual Basic ActiveX dll using DLLServerRegister(), then please let me know.
Regards
Swapna
|
|
|
|
|
Did you read the complete thread, it ends with the CreateProcess() usage with regsvr32 command. COM DLL should behave same which developed in any language, so i think DLLServerRegister() will work. You can replace createprocess with shellexecute also.
|
|
|
|
|
That's the main reason why people use instalation products. So that they can register their dll, install MFC libraries, register the program in the registry,... All of that using a simgle executable.
Did you look at the link I gave you ?
|
|
|
|
|
Hey dude...
I tried creating a setup using Inno Setup.
I was able to create the setup successfully. I installed the setup too.My application makes use of a VB dll.The final GUI has a button when clicked will make use of a function in that dll. Now when i tried to click that button after installing the setup, I got an error CoCreationFailed. It usually comes when the dll is not registered. I registered the dll from command prompt and tried opening the same installed exe, it worked. So do you think Inno Setup actually helped me in solving that problem?
Well, the Visual Studio Installers provided on MSDN dont support Windows XP. Please correct me if I am wrong. I have decided not to give up on this problem since I believe there would be some way out to this.Please give me all your ideas possible. I would try them and let u know.
Thanks
Swapna
|
|
|
|