|
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
|
|
|
|
|
It seems you are not interested in a "VC command" but an API function. Look up DeleteFile.
|
|
|
|
|
For VC6
In Project/Settings, Post-Build step, you can enter the DOS
commands which are to be executed after build is done.
This batch is executed before the program starts.
|
|
|
|
|
it means:
if anybody modified my EXE file.
EXE file may be refuse to run....
|
|
|
|
|
Some kind of signing. Either by implementing your own cryptography stuff or reusing something existing. Have a look at Google for e.g. "Diffie Hellman".
|
|
|
|
|
I think the easy way is to use MS Authenticode (http://msdn.microsoft.com/workshop/security/authcode/signing.asp). And then use function WinVerifyTrust (http://msdn.microsoft.com/library/en-us/security/Security/winverifytrust.asp?frame=true) to verify integrity of your exe.
M
|
|
|
|
|
I've an OLE automated project to convert MS Excel document to PDf file. I use the
void _Workbook::PrintOut(const VARIANT& From,
const VARIANT& To,
const VARIANT& Copies,
const VARIANT& Preview,
const VARIANT& ActivePrinter,
const VARIANT& PrintToFile,
const VARIANT& Collate,
const VARIANT& PrToFileName)
for printing into Acrobat PDFWriter. It runs, but the problem is that Acrobat appears. How can i do to avoid this, please ?
Thanks.
Aziz Rajim.
Aziz Rajim
|
|
|
|