|
WM_ERASEBKGND or WM_PAINT or WM_CTLCOLOR
whitesky
|
|
|
|
|
i am tryng to move a rectangle placed in CStatic object, the CStatic object is in a child window of the application.every time i move (on LButton Up)the rect it goes out of the CStatic object and goes to the corner of the client screen. I want it to remain within that CStatic object(rectangle)but it just flies out please help me. currently i m moving it with the help of SetWindowPos();
Should i get the coordinates of the CStatic object, then what???
|
|
|
|
|
give the SWP_NOSIZE flag while caling SetWindowPos(..). The width and height will be maintained if u metion that one.
nave
|
|
|
|
|
You can use also from MoveWindow for move
|
|
|
|
|
hi,
my application do not use any activeX ocx( and written on vs 6.0 mfc), and I wish to make an installer package.
So, which files I have to include within this package ??
thanks.
meTin.eRGoktas
|
|
|
|
|
if ur application was made in release mode, U need to give only the exe.
Copy the exe to another commputer and use Dependency walker to find any other dlls wanted.
nave
|
|
|
|
|
|
Can anybody help me
#sankar#
|
|
|
|
|
if you search in codeproject you can find your answer because i saw your answer in codeproject,but im sorry idont know its name
whitesky
|
|
|
|
|
Hi,
Is that possible to get a pointer of a class at the runtime and of course to have access to it's memeber variables ?
I need this to access the member as well as the methods of the class from a callback function.
using the following method does not seems to work :
callback.m_pDlg = (CLiveUpdateConnectionDlg*) RUNTIME_CLASS( CLiveUpdateConnectionDlg );
callback.m_pDlg->PrintMessage();
Regards,
George
sdancer75
|
|
|
|
|
You need to have an instance of the class to be able to have its address. In your example, RUNTIME_CLASS is used to get informations about the class (and not a specific instance !) of the class. It returns a structure containing info about your class (its name, the size, ...)
There should be another way to get the object you try to access. If you could describe the situation you have more in detail, that could help a lot.
|
|
|
|
|
Thanks for your answer.
I am trying to get the OnProgress status using URLDownloadToFile. For this, I need a callback for the IBindStatusCallback interface. So, I created a thread AfxBeginThread ( downloadFile, this, THREAD_PRIORITY_NORMAL, 0, 0) that just calls the WorkerThreadProc.
UINT downloadFile(void* pv)
{
CWebUpdate* pDlg = (CWebUpdate*) pv;
pDlg->WorkerThreadProc();
return 0;
}
void CWebUpdate::WorkerThreadProc()
{
CCallback callback;
//callback.m_pDlg = ((CLiveUpdateApp*)AfxGetApp())->pTargetDlg;
callback.m_pDlg = (CLiveUpdateConnectionDlg*) RUNTIME_CLASS(CLiveUpdateConnectionDlg);
dloadResult = URLDownloadToFile(NULL, remoteFile, localFile, NULL, &callback);
//at this point the program fails to call the OnProgressUpdate which is located to a
specific Dialog.
}
The &callback is the IBindStatusCallback which calls the the Specific Dialog (which i need the instance address) to update the progress bar.
Regards,
sdancer75
|
|
|
|
|
Hi all,
Where can i get MFC interview questions and answers...
Manju
|
|
|
|
|
Here's one
What is MFC?
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
good one though !!!
|
|
|
|
|
Then i have a question
from wer the answers too???
Dream bigger... Do bigger...Expect smaller
aji
|
|
|
|
|
_AnShUmAn_ wrote: What is MFC?
Most Foolish Comment
ARSALAN MALIK
|
|
|
|
|
What made you say that this was a comment?
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
what do you need? its not a question
|
|
|
|
|
Hi
Please guide me that how to program for making a rescue disk which will detect FAT aswell as NTFS partition.
I will try to let u understand the scenario of my need..
Let I backed up of C: ( which is NTFS partition) and image is stored on D:.
Now suppose C: is crashed and OS was installed on this drive so we are no longer able to run the System.
So boot the system from bootable floopy or CD ( i.e. from Rescue Disk) and now restore the C: from the image which is on D:.
This all I want to do.
so please help me.
Thanks
|
|
|
|
|
Hi, everyone.
I am using ReadDirectoryChangesW(), FindFirstChangeNotification(), FindNextChangeNotification() and FindCloseChangeNotification() to watch a directory.
I would like to be notified when a file is completely copied into the directory.
I've got the way I can get the notification when the copy begins, but how do I know when it finishes?
Are there any some documents or samples that I can solve the problem?
|
|
|
|
|
Im not sure that its your answer or no but you can see last article Mr David Crow(I think it was for copy files)
|
|
|
|
|
Could you give me the title or URL of the last article ?
I have tried to find the article but the web showes me "0 result".
|
|
|
|
|
|
yes see answer Naveen it was my answer
|
|
|
|