|
Try this:
GetDlgItem(IDC_YOUR_BUTTON_ID)->EnableWindow(FALSE);
GetDlgItem(IDC_YOUR_BUTTON_ID)->SetWindowText("new text");
F.Dost
|
|
|
|
|
What i do is that in the dialog editor you put the & sign before the letter with the caption.
I hope this is what you need .
SAntiago Suarez
|
|
|
|
|
How can i make my child window scorll when contents are bigger than window size?
What functions do i need to overwrite?
Thanks,
F.Dost
|
|
|
|
|
handle the OnUpdate() message and set the scroll sizes there depending on the 'size' of your doc and the font size you are using
---
"every year we invent better idiot proof systems and every year they invent better idiots"
|
|
|
|
|
could anyone tell me how to set min/max size of an child view in MDI Applications?
Thanks
F.Dost
|
|
|
|
|
handle the OnSize() message
---
"every year we invent better idiot proof systems and every year they invent better idiots"
|
|
|
|
|
Handle the WM_GETMINMAXINFO message, where you tell Windows the min/max sizes of your windows.
--Mike--
http://home.inreach.com/mdunn/
The Signature, back by popular demand: Buffy. Pajamas.
|
|
|
|
|
Thanks for your help but, I did overwrite OnSize() setting cx and cy to what i want but it was ignored, i used it before and after the
default call,
i don't know what to do with WM_GETMINMAXINFO, i can't see it in classwizard,
need more detail...
Thanks
F.Dost
|
|
|
|
|
I need to catch the WM_KEYDOWN messages that are send when the user write a string in a window of another process.
Actually it is to convert the string to an asian character set.
Is it possible ?
If not, is there a way to avoid the problem ?
Thank you
Eric
|
|
|
|
|
|
Hi.
I have a problem with the winInet library. The problem is that I send a data to server and waiting for the reply. However, if the server is up but the script is missing, I can't tell it is an error. Is there any wininet call to check whether the reply from server is actually "Page not available"?
Thanks
|
|
|
|
|
Does anyone know what i need to burn a CD from a C program.
What API do i need to use?
Do i have to use ASPI or i can also use window API or INT13h?
- - - - - - - - - - - - - - - - - -
Memory leaks is the price we pay \0
01234567890123456789012345678901234
|
|
|
|
|
I think under win9x you have to use ASPI but under NT/2000 you can use SPTI interface too.( CreateFile, DeviceIoControl ) More info about it, can be find in the NT DDK or in the MSDN Library CD.
bye
|
|
|
|
|
Can anyone help,
I am writing an application that will eventually output data to an Excel spreadsheet and to a pdf file, i have coded the excel side of this by importing the MS dlls and writing directly to the spreadsheet from code. Does anyone know how i can do the same sort of thing using pdf. I have a copy of Adobe Acrobat v4, so i really need to know which dlls i need to import to write directly into a pdf file.
Many Thanks
Neil
|
|
|
|
|
I don't know if Adobe writes an SDK for directly creating/modifying PDF files. As long as you have the full Acrobat installed on your computer, just have your application print to the Adobe PDF printer (that is installed when Acrobat is installed) like it would print to any other printer.
--
Russell Morris
Georgia Institute of Technology
"Lisa, just because I don't care doesn't mean I'm not listening..." - Homer
|
|
|
|
|
first:Thanks Tomasz Sowinski a lot!
Questions remain:if i check the dialog's property of clientedge on(in Exentened Style propertypage),i want the toolbar outside the client area,how can i?
sincerely thanks!
|
|
|
|
|
You're creating a toolbar on a dialog based project ? It can't be done with a Windows toolbar, you'll need to write your own.
Christian
The content of this post is not necessarily the opinion of my yadda yadda yadda.
To understand recursion, we must first understand recursion.
|
|
|
|
|
> You're creating a toolbar on a dialog based project ? It can't be
> done with a Windows toolbar, you'll need to write your own
This isn't true. The toolbar icon is missing from the Controls palette in Dialog editor, but you can create a "Windows toolbar" programatically and attach it to the dialog box. DLGCBR32 MFC sample demonstrates exactly this.
Tomasz Sowinski
http://www.shooltz.com.pl
|
|
|
|
|
I guess I should be more specific - yes, you can embed a toolbar as a child window, as you can anything derived from CWnd. But you cannot create a toolbar in the general sense, one which can be moved, docked, placed outside the client area, etc.
Christian
The content of this post is not necessarily the opinion of my yadda yadda yadda.
To understand recursion, we must first understand recursion.
|
|
|
|
|
> i want the toolbar outside the client area,how can i?
Basically, you can't place your toolbar or any other child window outside the client area. Your window will exist, but will be partially clipped or completely invisible. Child windows are confined to the client area of their parent.
You can try to handle WM_NCPAINT to change the look of the client edge frame in the upper part of the dialog (where toolbar is displayed), but it's probably difficult.
You can also create your application as SDI with CFormView. You'll be able to use a dialog template for main window contents, and toolbar comes for free.
Tomasz Sowinski
http://www.shooltz.com.pl
|
|
|
|
|
Hi
I tried to develop a dialog with a nenu and toolbar,i have added the menu and toolbar onto the dialog,the dialog property of clientedge was checked,
and i want the toolbar outside of the client like menu,but it doesn't work,
thanks
julia
|
|
|
|
|
Look for DLGCBR32 sample in the MSDN. It shows how to add a toolbar and a status bar to a dialog-based application.
Tomasz Sowinski
http://www.shooltz.com.pl
|
|
|
|
|
I am trying to organise the approach our organisation will take to using multiple resource scripts/headers in a new product. MSDN outlines the unpleasant way that this is to be accomplished in VC++, but I was hoping someone could tell me of an app/plugin/method that could relieve some of the burden (the 'manual' bits, particularly having to put the _APS_NEXT_ bits in the headers)...
|
|
|
|
|
Sadly, Visual C++ only likes on .RC file. If you are willing to manually manage other RC files, you can do it, but you won't get the nice VS IDE interface. This is one of the largest drawbacks to VC. I wish they used a seperate RC for each dialog, and a seperate RC for strings, etc..
There are no easy solutions here, sadly.
|
|
|
|
|
Thanks, Erik
TN035 in MSDN outlines how you actually can uses multiple .rc files in one application (one for strings, each dialog ...), and still use the IDE to insert resources into them, edit them etc. (without the joys of classwizard, though). The problem is that you must manually assign a range of values (the _APS_NEXT_XXX statements) to each file.
I wonder if VS.NET will fix these problems! (makes you wonder how VS can call itself an 'enterprise' solution in this case ... makes life tedious for 3 of us, can't imagine trying with a dev team of 100!!!)
|
|
|
|