|
I still dont know!Can you explain more...
|
|
|
|
|
Hi All,
can we set flat scrollbars for ListBox control?
-Sarath
|
|
|
|
|
For that you can customize your ListBox
There are to much articles on customization of the Listbox control
Knock out 'T' from CAN'T ,
You 'CAN' if you think you 'CAN'
|
|
|
|
|
can u suggest one?
-Sarath
|
|
|
|
|
See the Following links where you can get number of custom listboxes
here[^]
Knock out 'T' from CAN'T ,
You 'CAN' if you think you 'CAN'
|
|
|
|
|
Hello people,
In my application I use ShellExecute to start a consoleapplication for certain actions. The problem is that the console-application starts up in the foreground.
My application is full-screen, and I don^t want the user to be bothered with the popping up of the console application. Is there any way to start the console application in the background (behind my application) ?
Thanks for any help,
Davy
|
|
|
|
|
The last parameter of the ShellExecute nShowCmd set to SW_HIDE
Knock out 'T' from CAN'T ,
You 'CAN' if you think you 'CAN'
|
|
|
|
|
Yes, SheelExecute prototype is:
HINSTANCE ShellExecute(
HWND hwnd,
LPCTSTR lpOperation,
LPCTSTR lpFile,
LPCTSTR lpParameters,
LPCTSTR lpDirectory,
INT nShowCmd
);
and the last aprameter can take following values:
SW_HIDE Hides the window and activates another window.
SW_MAXIMIZE Maximizes the specified window.
SW_MINIMIZE Minimizes the specified window and activates the next top-level window in the z-order.
SW_RESTORE Activates and displays the window. If the window is minimized or maximized, Windows restores it to its original size and position. An application should specify this flag when restoring a minimized window.
SW_SHOW Activates the window and displays it in its current size and position.
SW_SHOWDEFAULT Sets the show state based on the SW_ flag specified in theSTARTUPINFO structure passed to theCreateProcess function by the program that started the application. An application should callShowWindow with this flag to set the initial show state of its main window.
SW_SHOWMAXIMIZED Activates the window and displays it as a maximized window.
SW_SHOWMINIMIZED Activates the window and displays it as a minimized window.
SW_SHOWMINNOACTIVE Displays the window as a minimized window. The active window remains active.
SW_SHOWNA Displays the window in its current state. The active window remains active.
SW_SHOWNOACTIVATE Displays a window in its most recent size and position. The active window remains active.
SW_SHOWNORMAL Activates and displays a window. If the window is minimized or maximized, Windows restores it to its original size and position. An application should specify this flag when displaying the window for the first time
One of these should do the trick.
~RaGE();
|
|
|
|
|
Thanks for the quick reply.
SW_HIDE doesn`t do the trick unfortunatly, I had allready tried that. But I`ll try with the one of the other options you suggested. one of 'em should get the job done...
|
|
|
|
|
Try CreateProcess[^]
Hope it helps
The statement below is true. The statement above is false.
|
|
|
|
|
HI,
I want to zip a file only . Normaly Zip is used for folder or when ever we zip a file the zip utility zip it inside a folder.
How can I zip only a file without zipping it inside a folder.
Any idea / link ?
Thanks
Regards.
|
|
|
|
|
zahid_ash wrote: How can I zip only a file without zipping it inside a folder.
Isn't link i given to you last post related to Zip file is not working!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Thanks for the reply
It is working, but it ZIPs the file in a zip folder like file ABC.doc is zipped as ABC.doc in folder "ABC.zip" - Thanks again for the link
I want to know about to ZIP a file without ZiPPing it in a folder . Am i think a right idea may be my idea to zip in this way is not correct.
Or would it be come in compression category . Please guide / corect me
Thanks
Regards.
|
|
|
|
|
zahid_ash wrote: t is working, but it ZIPs the file in a zip folder like file ABC.doc is zipped as ABC.doc in folder "ABC.zip" - Thanks again for the linkI want to know about to ZIP a file without ZiPPing it in a folder . Am i think a right idea may be my idea to zip in this way is not correct.
First Tell me Which wrapper class are you using, secondly you can pass the name of doc file itself instead of passing the folder name while creating zip file!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
I am a bit confused to use which one as wrapper class.
Could you please tell me the which is the right one - Thanks
Regards.
|
|
|
|
|
zahid_ash wrote: Could you please tell me the which is the right one - Thanks
both of the wrapper classes are good,you can use any of them( which ever you find easy to use)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
i need loop for my randomised number...so that all the list of randomised number can be listed in editbox...i onli getting the last randomised number..
<code>
void CConeverterDlg::OnEnter()
{
// TODO: Add your control notification handler code here
CString str;
// char str[13];
cEdit.GetWindowText (str);
//AfxMessageBox(myStr);
//tmStart = time(0);
CTime time=CTime::GetCurrentTime ();
CString strtime= time.Format ("%Y%m%d%H%M%S");
cEdit3.SetWindowText (strtime+"\n");
//cEdit2.SetWindowText (strttime+"\n");//;(str)
//cEdit2.SetWindowText (strttime+"\n");
string line(str);
//line.c_str (),100);
//fin.open("data.txt");
// cout << str<<endl;
for (int i=0; i<500; ++i)
{
random_shuffle(line.begin(), line.end());
// File << "Randomised: " << line << endl;
// File << " : " << line << endl;
// File << " : " << line << endl;
// File << " : " << line << endl;
// File << " "<< endl;
// File << "Single Row: " << s << " " << s << " " << s <<" " << s << endl;
// File << " "<< endl;
CString cStr(line.c_str ());
cEdit2.SetWindowText ( cStr + "\n");
cEdit2.SetWindowText ("Randomised: "+ cStr + "\n");
UpdateData (FALSE);
//tmEnd = time(0);
}
CTime time1=CTime::GetCurrentTime ();
CString strtti= time1.Format ("%Y%m%d%H%M%S");
cEdit1.SetWindowText (str);
cEdit1.SetWindowText (strtti+"\n");
//cout << tmEnd-tmStart << " seconds " << endl;
}
</code>
|
|
|
|
|
makaveli_07 wrote: for (int i=0; i<500; ++i) { random_shuffle(line.begin(), line.end()); // File << "Randomised: " << line << endl; // File << " : " << line << endl; // File << " : " << line << endl; // File << " : " << line << endl; // File << " "<< endl; // File << "Single Row: " << s << " " << s << " " << s <<" " << s << endl; // File << " "<< endl; CString cStr(line.c_str ());cEdit2.SetWindowText ( cStr + "\n"); cEdit2.SetWindowText ("Randomised: "+ cStr + "\n"); UpdateData (FALSE); //tmEnd = time(0); }
Please check this modified version of loop!
CString cStr;
for (int i=0; i<500; ++i)
{
random_shuffle(line.begin(), line.end());
cStr+=CString("Randomised: ")+CString(line.c_str ())+CString("\n");
}
cEdit2.SetWindowText ( cStr + "\n");
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Hi guys this is Rocky.
I m usin windows 2005 pocket pc SDK.
I want to save a msg in the drafs section on pocket pc.
plz guys help me out.
Thnx in advance .
Best Regards
Rocky Marrone
Rocky Marrone
|
|
|
|
|
Hi Guys this is Rocky.
I got stuck in a problem plz help me out.
i m using windows 2005 pocket pc SDK and 2005 emulators also.
I want to retrieve the full contact list of Outlook express which is stored in Microsoft's Windows Address Book.
Please guys help me out.
Thnx in advance.
Best Regards
Rocky Marrone
Rocky Marrone
|
|
|
|
|
hi Friends,
i want how to Load Dll Dynamically in win32 Application.
pls GUide ....
swathi
|
|
|
|
|
Hi,
Check this link
http://en.wikipedia.org/wiki/Dynamic_link_library
|
|
|
|
|
HINSTANCE hdll = ::LoadLibraryA(_T("your dll"));
Get function pointer=GetProcAddress(hdll,"your function");
FreeLibrary(hdll);
whitesky
|
|
|
|
|
|
Use LoadLibrary function
and use GetProcAddress function to get the address of the methods
The GetProcAddress API sucess only if the Dll exports the function as follows
__cdecl __declspec(dllexport) returntype function name (parameters,...);
because C++ Mangles the function names due to that GetProcAddress fails,to avoid that use C style definition of the function
Knock out 'T' from CAN'T ,
You 'CAN' if you think you 'CAN'
-- modified at 7:12 Thursday 18th May, 2006
|
|
|
|