|
Why don't you handle the behviour you want in OnPaint and let Windows worry about redrawing ?
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
Because the redrawing is far from optimal when i use a non rectangular region on my dialog. I even use an offscreen dc to hold the bitmap and so on but when i quickly move the dialog, it leaves a trail behind.
The only way to avoid that is not drawing the window but drawing a rectangle for it's new position when moving and only actually redrawing it at it's new location when the left mouse button was released. You only need to draw a rectangle instead of the whole window that way.
If you know of a more efficient way of drawing, i'll gladly listen because i'm out of ideas and i can't use direct x to draw more efficient.
|
|
|
|
|
Yes, but, like I said, if you actually set a variable to tell you if you're dragging, and have two draw methods ( one that draws the dialog normally, and one that draws the outline ), won't that mean Windows will handle the rest ? Dragging a dialog is not normally a problem, so even if you suspend drawing operations while you drag you will surely get what you're after, in that you won't get trails, etc. ?
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
yeah, that's what i was looking at today. I'll try that and let you know the result
|
|
|
|
|
i tried but i don't succeed in doing this.
looked like a valid method. i'm really annoyed by this.
|
|
|
|
|
Calling SystemParametersInfo(SPI_SETDRAGFULLWINDOWS, FALSE, NULL, 0) when initializing dialog based window.
Amiee
|
|
|
|
|
If you modify the class bits of your dialog window that you are dragging over the main window with the CS_SAVEBITS sytle, windows will save the bitmap image that is below your dialog, and when you drag the dialog, windows will automatically replace that region with the bitmap that it cached.
|
|
|
|
|
Can the file size exceed 4G in a FAT32 system?
Thanks.
Maer
|
|
|
|
|
I believe so, but it depends on the API you use to create it. Be careful though - creating a file does not mean you can use it. For example, I used a video ripper that allowed me to create an AVI greater than 2 Gig, but nothing would play it, or load it to convert to MPG.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
hi
Thanks my pal.
If I use "CreateFile", is there still a size limit?
Best regards.
Maer
|
|
|
|
|
I *think* so, but I know from reading here, not from doing it myself.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
Thanks my pal.
You help a lot.
Best regards.
Maer
|
|
|
|
|
In the "OnCreate" funtion of the class "CInPlaceFrame" of a Server Application, there is a statement like this "m_dropTarget.Register(this)". Here are the comments from Microsoft:
// By default, it is a good idea to register a drop-target that does
// nothing with your frame window. This prevents drops from
// "falling through" to a container that supports drag-drop.
I can not see the funtion of the statement. If I remove the statement, my server application runs like before.
Maer
Thanks.
|
|
|
|
|
It depends on the container that is containing your Frame window. You may write a control that is supposed to work in one way, but because the control frame window does not act like a catch all for drop actions, the container window may change the behavior of your control. It really all depends on the container window.
|
|
|
|
|
It is well known that the data member "m_pDocTemplate" points to the CDocTemplate that owns the Document.
But in the CDocument::CDocument(), "m_pDocTemplate" is assigned a "NULL" value.
How does the "m_pDocTemplate" get its own value?
Thanks.
Maer
|
|
|
|
|
How to add "neighbour computer" on the LAN to the TreeView in my application? Like what the "Explorer" is doing.
Thanks.
Maer
|
|
|
|
|
Paolo Messina's CNetworkTreeCtrl ought to get you going.
Jon Sagara
Sagara Software
|
|
|
|
|
I've written an ATL dialog class CAddComputerDialog, which looks like a windows computer search dialog (e.g. in regedit where you can connect with another computer's registry). If you're interesting, I will mail you the files.
You also can search for a computer with the shell dialog "SHBrowseForFolder". This dialog can be configured to display computers only.
V.Boos
|
|
|
|
|
hi
My pal. Thanks.
If you can mail me the files, I will be very thankful.
Best regards.
Maer
|
|
|
|
|
Can anyone please tell me how to remove the thin border around my control in the formview.
alb
|
|
|
|
|
Hi,
I like to create my own window(in ovel shape). How to over ride the windows default rectangular window?
Thanks in Advance
Raja
|
|
|
|
|
Use following APIs:
BeginPath, EndPath, PathToRegion, SetWindowRgn
and shape functions.
Amiee
|
|
|
|
|
CFile myfile ;
LPCTSTR lpszFileName = "myfile.dat" ;
myfile.Open(lpszFileName,CFile::modeReadWrite) ;
It is safer to use this function within a TRY CATCH Block
Read or write using the CFile function
CFile::Read or CFile::Write
Close the file using CFile::Close;)
|
|
|
|
|
hello, im a beginner at using visual c++. ive a simple question to ask.
i want to know how to open a *.txt file from a certain directory when i click on a button. for example, when i click on the button [Open Text File] => the example.txt will be open with the notepad etc. post the code here or email me at 993269d@nyp.edu.sg if u know how - thank u for ur help. have a nice day!
regards,
kserv;)
|
|
|
|
|