|
Thanx!
That was it.
rechi
|
|
|
|
|
I have written an MDI application and its almost finished. I just need to display a help file written in Compiled HTML.
What's the easiest / quickest way to do this?
Thanks
Ali
|
|
|
|
|
Just use shellexecute to execute the compiled .chm file.
Simon
I need your clothes, your boots, and your copy of VS.NET.
Sonork ID 100.10024
Recent bug fixes to Walton's pr0n organiser v1.2b
- fixed a bug where the user's FAT table would be wiped for no reason
- fixed a bug where the user's computer would explode, killing everyone within a 5 foot radius
|
|
|
|
|
yeah, the line of code is
HINSTANCE nRet = ShellExecute(this->m_hWnd, "open", szBuff, NULL, NULL, SW_SHOWNORMAL);
where szBuff is a string variable which contains the full path of the file name and the file name itself.
Thanks!
|
|
|
|
|
Great, I just tried it exactly as you typed it lucy, and it worked straight away, just what I needed.
Thanks.
Ali
|
|
|
|
|
In win2K, it's no problem, but in win98, it's difficult to do.
I try to alphablend by myself, but i can't refresh my dlg when something behide the dialog changed , then i try to set timer to notify me refresh the dialog every a short time, but when the dialog is showwing, i can't get the bitmap behide the dialog from the desktop DC.
anyone could help me?!!
|
|
|
|
|
Maybe you could try to start by specifying WS_EX_TRANSPARENT sty;e when creating your windows. That ways, Windows will paint Windows behing yours first...
But it will not works as smootly as it does in Windows 2000 for few reasons:
- I'm not sure that it apply to non-client area.
- It will causes blinking
- It will probably be slower (particulary when movig full window)
- It's probably a bit bugged and/or limited.
You may also try to enumerated windows behind you and cause them to be paint in a memory DC. It will probably works for some kind of windows and not for others...
Philippe Mori
|
|
|
|
|
Thanks a lot!
Let me try...
|
|
|
|
|
See samples 'DC Utilities' on this site (use search). If you will complete your code successfully, please, mail me result, I want to see it!
|
|
|
|
|
|
How to set single system cursor for ALL System? Required selecting of a fragment of screen.
|
|
|
|
|
Do you want to set the system cursor?
SetSystemCursor
|
|
|
|
|
Yeah, I use it, but it change only one curosor (arow, for ex.). I need SINGLE cursor ALWAYS.
|
|
|
|
|
Alexander Kourov wrote:
Yeah, I use it, but it change only one curosor (arow, for ex.). I need SINGLE cursor ALWAYS.
Call SetSystemCursor multiple times, one for each cursor.
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
Are you sure, that programs, which allow to select screen areas, doing it similar? May be there is another way?
|
|
|
|
|
Ahhh, now I see what you're getting at (and you should see what you should have told us when you first asked your question ).
There was a project put up here a CP not too many moons ago that displayd how to magnify a portion of the screen in a few different ways. IIRC it just created a top-level WS_INVISIBLE window. That way your client-area is the only thing you'd have to care about. I.e. you just respond to the WM_SETCURSOR message to your window with whatever you want to display.
|
|
|
|
|
I am using MFC dialog application and want to use something other than messageBox to instruct the user what to do. I was thinking something like a note pad that someone can't modify. Can someone help me?
www.nucleus.com/~grant.cooper
|
|
|
|
|
Create a dialog with a read-only editbox....maybe?
/Magnus
|
|
|
|
|
|
I'm a bit lost here
If you want to create a modal dialog, you just write this:
CMyDialog dlg;<br />
dlg.DoModal();
But if you want to create a modeless dialog, you have to make the calls to the template yourself. I've searched the internet (also this site) and I've found several methods to do this, but I didn't find a working one.
So, what you have is a CMyDialog created using the vc dialog resource editor and an id=IDD_LOAD_DIALOG.
What are the steps to create this dialog?
I know it has something to do with those templates, but I just can't figure out what to do first.
[VISUAL STUDIO 6.0] [MFC] [WIN98/2]
Bluute tette!
|
|
|
|
|
This is all documented. There's even a (Microsoft MSDN or MSVC) sample called MODELESS that displays how you do it.
|
|
|
|
|
Sorry
dlg.Create(IDD_LOAD_DIALOG)
Didn't know it's as simple as that. All I found here was that CreateIndirect()-method, with handlers and pointers to pointers to pointers to ....
[VISUAL STUDIO 6.0] [MFC] [WIN98/2]
Bluute tette!
|
|
|
|
|
You must write anything following for creation and displays of dialog:
CMyModelessDlg * pDialog = new MyModelessDlg();
pDialog->Create(IDD_LOAD_DIALOG);
and certainly following to delete the modeless dialog
delete pDialog;
Best regards,
Eugene Pustovoyt
|
|
|
|
|
You must write anything following for creation and displays of dialog:
CMyModelessDlg * pDialog = new CMyModelessDlg();
pDialog->Create(IDD_LOAD_DIALOG);
and certainly following to delete the modeless dialog
delete pDialog;
Best regards,
Eugene Pustovoyt
|
|
|
|
|
Hi,
In a dialog-based application, I have create a number of *.dat files (binary file) in the project directory. I want to delete these files when the application is closed. Which VC command should be used for doing this?
Thanks in advance!
chen
|
|
|
|