|
|
shereem wrote:
how can i write a code for sending an e-mail using visual c++ , by an example , please ?????????????
Here[ ^]
Here is the article having class for sending mails
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
|
Hello Everybody
Can any body help me out in Disabling a page of property sheet
There are 2 pages I want 2 disable the second page of the property sheet
Thanks in advance
Sarguna
|
|
|
|
|
Sarguna Reddiar wrote: here are 2 pages I want 2 disable the second page of the property sheet
Di you want to make the whole page un-selectable or do you want it to show only greyed controls?
For the latter, you would use the Standard technique of a ON_UPDATE_COMMAND_UI handler.
The one thing to get the handler working is that you manually have to trigger it:
LRESULT CMyView::OnIdleUpdateCmdUI( WPARAM , LPARAM )
{
UpdateDialogControls(this, false);
return 0L;
} Please see the links in the code snippet!
"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."
-- Caius Petronius, Roman Consul, 66 A.D.
|
|
|
|
|
There are 2 pages like this
CmyPropertySheet m_obj Derived from CPropertySheet
CProppag1 m_page1 derived from CPropertyPage
CProppag2 m_page2 derived from CPropertyPage
Initaily page1 is loaded now i want the whole page 2 be unselected
Thanks for the response
Sarguna
|
|
|
|
|
Sarguna Reddiar wrote: Initaily page1 is loaded now i want the whole page 2 be unselected
Can you explain it clearly ?
|
|
|
|
|
M making a simple propertysheet i.e. normally we see in windows the property of a file
The same stuff
there are 2 Pages in it
i want to disable the second page until and unless some operation is performed in the first page ..........
I think this should be clear
Thanks for replying
Sarguna
|
|
|
|
|
Sarguna Reddiar wrote: want to disable the second page until and unless some operation is performed in the first page ..........
You mean activated/visible not disabled.
Its behaviour of property sheet, only one property page is visible at time.
You could have use better wording to ask question.
|
|
|
|
|
Sarguna Reddiar wrote: unselected
Unselected. What does that mean?
Removed from the PropertySheet?
Greyed but remaining in the PropertySheet?
Remaining in the PropertySheet but all controls on it disabled?
Something other?
"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."
-- Caius Petronius, Roman Consul, 66 A.D.
|
|
|
|
|
Greyed but remaining in the PropertySheet?
I think you figured it out
Thanks
Sarguna
|
|
|
|
|
suppose you have 3 pages and you want to disable the second and third page then the following code will do
m_PropSheet.SetActivePage( 1 );<br />
<br />
<br />
m_PropSheet.GetPage( 1 )->EnableWindow( FALSE );<br />
m_PropSheet.SetActivePage( 2 );<br />
m_PropSheet.GetPage( 2 )->EnableWindow( FALSE );<br />
m_PropSheet.SetActivePage( 0 );
nave
|
|
|
|
|
Thank you Budddyyy
It did helped me out
Sarguna
|
|
|
|
|
See here.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I have made an shortcut of an exe form pc "pws19" to another pc
This shortcut's property shows the location as
"C:\Documents and Settings\vibin\Desktop" in General Tab
and its target is like
"\\pws19\FileTransfer\hai.exe" int Shortcut Tab.
Could i know how to get both the path in MFC.
VIBIN
Sim Infosys
|
|
|
|
|
????? wrote: Could i know how to get both the path in MFC.
Try SHGetFolderLocation or SHGetFolderPath
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
can u explain a little more? I didnt get u ...
nave
|
|
|
|
|
any way check the following sections in the link. Is that what u want?
1. Detect if an executable was started from a Short-Cut
2. Resolve shortcut
http://www.catch22.net/tuts/tips2.asp[^]
nave
|
|
|
|
|
Using the application's obects data member "m_pszHelpFilePath"
i can get the target path.(where the exe is really stored).
Now i need the path where the short cut of the exe is stored.
VIBIN
Sim Infosys
|
|
|
|
|
vibindia wrote: Using the application's obects data member "m_pszHelpFilePath"
i can get the target path.(where the exe is really stored).
u should use GetModuleFileName() to retrive the path o exe instead of the above trick.
u can get the path of short cut( if the process is started using a short cut ) using the GetStartupInfo() function. This method is explain in the link that i supplied in previous post under the section Detect if an executable was started from a Short-Cut. Did u check that?
nave
|
|
|
|
|
Naveen, please type plain words... "u" is not a proper word. please use "you" instead.
|
|
|
|
|
toxcct wrote: please use "you" instead.
I will try. What the problem is it has a become a habit And I think "u" is common short hand used instead of "you" now a days.
nave
|
|
|
|
|
please try, because it's not that easy to read, especially for youngers, or beginners which don't speak english naturally.
if we speak english as a common language, let's speak english then (not sms-glish)
|
|
|
|
|
Use GetModuleFileName() to get the path to the EXE. As for the path to the shortcut that launched the EXE, AFAIK that info isn't available to the process. Explorer reads the shortcut and calls CreateProcess() , but once the process is running, the shortcut is no longer relevant.
|
|
|
|
|
Michael Dunn wrote: that info isn't available to the
its available
Please check my post
nave
|
|
|
|