|
If you look at microsoft word or at wordperfect, when you get to the bottom of a page, a little line appears that looks like the following:
-------------------------- End of Page --------------------
It is any way of creating this feature for an edit box? Please, please, please any response any one can give me will be greatly appreciated.
Sincerely,
Erich J. Ruth (an overworked graduate student)
|
|
|
|
|
Hi
simply use DrawText or ExTextOut of the CDC class.
Kurt
|
|
|
|
|
Hello....
I have to write an application that can load one image and let the user draw on it two lines: the application must tell the user the degree among the two lines.
Can You help me?????
Thanks
|
|
|
|
|
If you still remember high school trigonometry, this problem is easy to solve!!
OK, here we go..
Let the endpoint of the 1st line be (x1, y1) and (x2, y2)
Let the endpoint of the 2nd line be (x3, y3) and (x4, y4).
Let the slope of the 1st line be m1 and the 2nd line be m2. [the slope can be calculated by m1 = (y2 - y1)/(x2 - x1)]. Then the angle between the two lines is given by
arctan[(m1 - m2)/(1 + m1*m2)].
Of course you have to deal with many other factors and boundary conditions, the type of coordinate system you're using, and convert radian to degree, etc...
Hope this helps.
Eddie
|
|
|
|
|
Is there a workaround for the setup program for Visual Studio 98 to install w/o
having to install IE4 first? I already have HTMLHelp 1.3 and Common
Controls 5 on my system. Any solution is welcome, even cheap hacks.
Thanks.
|
|
|
|
|
Here is a cheap hack:
Use Registry Monitor from www.sysinternals.com, start it before the setup and look what key the setup looks for to query the presence of IE4.
If it does not query the registry, but a file, use the File Monitor from the same guys.
|
|
|
|
|
Hello,
I'm a beginner (since about 8 month with c++) and I would like to write a small application, which I can use as a reference. Problem is, I don't have an idea what app to write! The application should not be network dependend (because I don't have a client/server at home), should not need MAPI or the internet (cause I have dialup and that would be a pain in the butt). The last limitation is the database. I would prefer an application that doesn't use a database.
After all these limitations, does anybody still have and idea? Preferable something that would be of use for daily development (like the includes browser, which is excellent).
So, any wild ideas are very welcome. Please note that I will do this in my free time. If the project is too large, I could only do it in tandem with somebody different.
Thanks in advance
Matthias
|
|
|
|
|
Hi, codegurus around the world.
I pointed out your one of misunderstandings.
Without the network, we can write the client-server program.
That is, we can use 127.0.0.1 IP address in our own machine
to check the functionality of the client-server. This also
applies the web development. Try to type 127.0.0.1 or localhost in the address bar of the browser.
If you doesn't have your own idea of what you want, this is not time to write you interested application. Before this, you had better learn the other stuffs like the database, network, and so on.
As you write the high-level application, we notice that we have to solve the problem by ourselves basically.
Good luck.
-Masaaki Onishi
|
|
|
|
|
Someone has asked a tool for VC++ to see tree of included headers.
|
|
|
|
|
This already exists and is called Includes Browser. I don't know whether this application is available on this site. I have found it at the www.codeguru.com.
Thanks for help anyway,
|
|
|
|
|
It is difficult to find something that doesnot exist.
If you found something, there is no warranty it does not exist. Probably you just do not know.
There are many manufacturers of bikes, BTW. And all have customers.
|
|
|
|
|
Like Dimitry says most things already exist,
True like the statement when you loose something "it will be
in the last place you look"
Most of us here are "software engineers" and build things.
For something truly new you need to be a "software inventor",
Thus you first create a new idea, "successful software inventors can make real big bucks".
Because they are the first to implement totally new ideas.
So most of us are just trying to build better mouse traps.
Anyhow Mathias if you can't come up with a totally new idea that'll be useful you have two alternatives.
a.) Build a useless new idea tool, (and somebody else might find a use for it.)
b.) Do what most of us have to do, analyze all the other tools in your chosen category. And work out how to, design them better, generally this involves the user-interfaces, as the backend can't be improved for compareable difference, with most hardware today. Unless it's a transaction-server or tool that really utilizes the hardware well.
Regardz
|
|
|
|
|
who can tell me how to use VC++ write a application program
that can file upload to web
do not make it!! (T_T)
how can i make a file upload program?
do you now it now wirte in here .are you allright?
ok~
will you sit back and do nothing?
please solution that
|
|
|
|
|
while running my first MFC program , i go to task manager and realize my program eaten up 6700K memory! it's only FTP client program with a SDI interface. Is that normal? and how can i minimize the memory it eaten up?
thanks a lot
|
|
|
|
|
6700K is not that bad.
if you are worried about that then you should see if you have large arrays of data. Are you freeing up the memory?
// Afterall, I realized that even my comment lines have bugs
When one cannot invent, one must at least improve (in bed).-My latest fortune cookie
|
|
|
|
|
Hi,
i want to show a modalless dialog from the mainthread UI, and let it show in a second taskbar. how do i do that? does this dialog need to be in a worker thread?
please help
|
|
|
|
|
Dear nick,
All you have to do is to go to your dialog in the Resource Editor, and then double-click it to bring up Properties. Then, click the Styles page, and then make sure the
-Title Bar
-System Menu
-Minimize Box
boxes are checked. Make sure to give your dialog a title, and call CWnd::SetIcon() in OnInitDialog() if you want to give your dialog its own icon. i.e.
BOOL CMyDialog::OnInitDialog()
{
CDialog::OnInitDialog();
//...
//...
// Takes care of setting both 32x32 and 16x16 icons
SetIcon(AfxGetApp()->LoadIcon(IDR_MYICON), TRUE);
return TRUE;
}
And voila! Taskbar entry!
Yours,
Brian Hart
|
|
|
|
|
I am trying to find a way to manipulate windows on my computer. I have seen some video driver installation programs that will automatically open the properties box, click on settings, and continue on to install the driver etc.
Do anyone know how they do it?
Pankaj
|
|
|
|
|
To open the screen properties you may execute RUNDLL32 with the name of the exported function from desk.cpl
Syntax for RUNDLL32 is: rundll32 <library>,<exported-function> [function arguments...]
To click on controls you may send mouse messages to the correct window. You may find it with tools like SPY++, look at the class name and the window caption: you have to use those information in a call to FindWindow(). You may use the returned HWND to send messages that don't contain any pointer to data, since you are in another process space.
|
|
|
|
|
I am writing a client that will shutdown the computer. I want it to save as many applications before shutdown. I have tried WM_SAVE, and WM_CLOSE but they don't help much. Any suggestions.
|
|
|
|
|
Has anyone ever implemented a simple user-interface thread, with a dialog that simply has a cancel button? I have done all the steps to create the derived class from CWinThread. I need to be able to create a simple dialog within my derived class, and process it's messages. I have done everything I know, but I am not able to create the dialog inside the thread code, without conflicting with the threads own message pump. This causes a deadlock. This is a class that I need to use other projects as well, so rearchitecting the program to put the computation in a worker thread would be undesirable.
|
|
|
|
|
Can I change size for a Edit Box when I resize Dialog.
And can I chose font for Edit Box?
|
|
|
|
|
Yes, use CWnd::MoveWindow and CWnd::SetFont of your CEdit control in the CDialog::OnSize message handler.
MFC are wrappers for the API.
-Erik
|
|
|
|
|
Can I change size for a Edit Box when I resize Dialog.
And can I chose font for Edit Box?
|
|
|
|
|
Since you haven't specified MFC or API, I'll assume API and then you can apply it to MFC if you need.
In the WM_SIZE handler for your dialog, call SetWindowPos with the HWND of your edit box to change the window position and size. Or you can call MoveWindow with the HWND of your edit box. Move Window is a simpler call.
SetWindowPos documentation
http://msdn.microsoft.com/library/psdk/winui/windows_2blf.htm
MoveWindow documentation
http://msdn.microsoft.com/library/psdk/winui/windows_92nr.htm
Then to change the font of your edit box, you need to use SendMessage with the window message WM_SETFONT.
SetFont documentation.
http://msdn.microsoft.com/library/psdk/winui/controls_7v90.htm
Hope this helps,
-Erik
|
|
|
|