|
does IsWindowEnabled() help??
Regards,
Sandip.
|
|
|
|
|
Hi,
Is it possible to change the "color" of the "Tracker Rectangle's handle"
when using CRectTracker object.
|
|
|
|
|
dinesh babu wrote: Is it possible to change the "color" of the "Tracker Rectangle's handle"
IMO no!
Since it's hardcoded in source as RGB(0,0,0), what you can do is derive a class from CRectTracker and override Draw function.
It's not a virtual function, but still if you are using the derived class object you can directly call yours, you just got to change one line...
pDC->FillSolidRect(rect, RGB(0, 0, 0));
copy the rest of source code to your own Draw version.
Nibu babu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
|
|
|
|
|
|
Hi All
I want to Copy Files and Folder from One directory to other Directory.I want to copy files/folders from C:\ to D:\. I know directory name but i don't know files/folder name.When user copy the files from c:\ to D:\ then i want show Message of files/folders name.
Plz help me
|
|
|
|
|
Reposting same question again and again will not help you getting answers.
If you post some things that you have tried or reading about might help.
for your previous posts people have suggested you few things have you tried or looked at??
Regards,
Sandip.
|
|
|
|
|
yes i tried it..Now i am geting Adding and deleteing files/folders information but i am geting copy information.So i am posting again.
|
|
|
|
|
|
i don't want to show files name.I want to show files name which currectly copy from current drive(C:\).
|
|
|
|
|
plz explain more......
i dont understand ur question.
how ur copy file from one drive to another with copyfile()
and how you are find the file with use of CFileFind class
than you can get file name from the CFileFind object.
|
|
|
|
|
i am fineding file to use og this code
WIN32_FIND_DATA FindFileData;<br />
FindFileData.cFileName
how ur copy file from one drive to another with copyfile()
And my question is.. How can i show Copy file name in Message box..
Plz help me
|
|
|
|
|
AfxMessageBox(FindFileData.cFileName);
|
|
|
|
|
MsmVc wrote: And my question is.. How can i show Copy file name in Message box..
This will require you to create your own "progress dialog" that shows what file is currently being copied.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
You can use of SHFileOperation.
|
|
|
|
|
MsmVc wrote: I want to Copy Files and Folder from One directory to other Directory.
Using what?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Sir my question is that what i use for do that?If i know then why i ask here?
Plzz help me
|
|
|
|
|
MsmVc wrote: Sir my question is that what i use for do that?
Have you bothered to read about CopyFile() or SHFileOperation() ? Those have been mentioned to you several times.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Hi all,
I want to change size of dialog at run time.
this possible.
if yes please tell me .
if possible please explain me with example.
thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
You can use
1 SetWindowPos
2 MoveWindow
See MSDN for function details.
I hope it helps.
Regards,
Sandip.
|
|
|
|
|
you can use MoveWindow() like this;
CVisitorDtlsDlg m_dlgVisitorDetails;
m_dlgVisitorDetails.MoveWindow(0,35,650,180);
|
|
|
|
|
The datafile is coded in MBCS, and my application is compiled in UNICODE mode.
However othere strings are read correctly except ℃.
After read in a line, ℃ is replaced by other characters (I'm not sure 1 or 2, just looks like 2).
Who knows why? And how to make it correct?
Thanks.
system
modified on Thursday, August 28, 2008 4:19 AM
|
|
|
|
|
Will that help? This is code for converting MBCS to Unicode, from http://msdn.microsoft.com/en-us/library/805c56f8.aspx[^]
int nLen = MultiByteToWideChar(CP_ACP, 0,lpszA, -1, NULL, NULL);
LPWSTR lpszW = new WCHAR[nLen];
MultiByteToWideChar(CP_ACP, 0,
lpszA, -1, lpszW, nLen);
pI->SomeFunctionThatNeedsUnicode(lpszW);
delete[] lpszW;
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
I created an MFC ClassWizard project and added a few buttons ect. but now, when i DubleClick a button or a combo box to set a function I get an error:
Parsing error: expected end-of-line. Input line: "DDX_Control(pDX, IDC_PROGRESS, m_Progress); prograss;"
How do I fix that?
|
|
|
|
|
Try to rebuild all,
or delete the .clw file,
or locate the error line, and do it manually.
system
|
|
|
|
|
One suggestion "Never edit wizard generated code". Its not that you can not but ideally you should not.
Now about your error
AlProb wrote: Parsing error: expected end-of-line. Input line: "DDX_Control(pDX, IDC_PROGRESS, m_Progress); prograss;"
i think it should be only
DDX_Control(pDX, IDC_PROGRESS, m_Progress);
remove prograss; after the first semicolon.
Regards,
Sandip.
|
|
|
|