Click here to Skip to main content
15,900,532 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: e-mail Pin
Hamid_RT31-Jan-07 1:40
Hamid_RT31-Jan-07 1:40 
GeneralRe: e-mail Pin
Mark Salsbery31-Jan-07 7:18
Mark Salsbery31-Jan-07 7:18 
GeneralRe: e-mail Pin
Mark Salsbery31-Jan-07 7:27
Mark Salsbery31-Jan-07 7:27 
AnswerRe: e-mail Pin
Hamid_RT31-Jan-07 1:37
Hamid_RT31-Jan-07 1:37 
AnswerRe: e-mail Pin
Laxman Auti31-Jan-07 1:47
Laxman Auti31-Jan-07 1:47 
AnswerRe: e-mail Pin
David Crow31-Jan-07 3:07
David Crow31-Jan-07 3:07 
QuestionDisabling a page of property sheet Pin
Sarguna Reddiar30-Jan-07 23:29
Sarguna Reddiar30-Jan-07 23:29 
AnswerRe: Disabling a page of property sheet Pin
jhwurmbach30-Jan-07 23:53
jhwurmbach30-Jan-07 23:53 
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:
//!called by MFC if 'nothing else to do'. Used to send a COMMAND_UI-Message to all controls
//!  thereby simulating the menu-update system via COMMAND_UI messages
//!  References: 
//!  Paul DiLascia in C++Q&A column
//!  Joseph .M. Newcomer on http://www.codeproject.com/dialog/dialogboxmgmt.asp
//!  TimMcColl on http://www.codeguru.com/propertysheet/onupdate.shtml
LRESULT CMyView::OnIdleUpdateCmdUI( WPARAM /*wParam*/, LPARAM /*lParam*/)
{
    UpdateDialogControls(this, false);	//..and allow controls here to handle it
	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.

GeneralRe: Disabling a page of property sheet Pin
Sarguna Reddiar30-Jan-07 23:56
Sarguna Reddiar30-Jan-07 23:56 
QuestionRe: Disabling a page of property sheet Pin
prasad_som30-Jan-07 23:59
prasad_som30-Jan-07 23:59 
AnswerRe: Disabling a page of property sheet Pin
Sarguna Reddiar31-Jan-07 0:03
Sarguna Reddiar31-Jan-07 0:03 
GeneralRe: Disabling a page of property sheet Pin
prasad_som31-Jan-07 0:50
prasad_som31-Jan-07 0:50 
GeneralRe: Disabling a page of property sheet Pin
jhwurmbach31-Jan-07 0:00
jhwurmbach31-Jan-07 0:00 
GeneralRe: Disabling a page of property sheet Pin
Sarguna Reddiar31-Jan-07 0:04
Sarguna Reddiar31-Jan-07 0:04 
AnswerRe: Disabling a page of property sheet Pin
Naveen31-Jan-07 0:32
Naveen31-Jan-07 0:32 
GeneralRe: Disabling a page of property sheet Pin
Sarguna Reddiar31-Jan-07 0:38
Sarguna Reddiar31-Jan-07 0:38 
AnswerRe: Disabling a page of property sheet Pin
David Crow31-Jan-07 3:13
David Crow31-Jan-07 3:13 
Questionhow to get application path Pin
vibindia30-Jan-07 20:23
vibindia30-Jan-07 20:23 
AnswerRe: how to get application path Pin
Laxman Auti30-Jan-07 20:40
Laxman Auti30-Jan-07 20:40 
AnswerRe: how to get application path Pin
Naveen30-Jan-07 20:48
Naveen30-Jan-07 20:48 
GeneralRe: how to get application path Pin
Naveen30-Jan-07 20:50
Naveen30-Jan-07 20:50 
GeneralRe: how to get application path Pin
vibindia30-Jan-07 22:00
vibindia30-Jan-07 22:00 
GeneralRe: how to get application path Pin
Naveen30-Jan-07 22:08
Naveen30-Jan-07 22:08 
GeneralRe: how to get application path Pin
toxcct30-Jan-07 22:23
toxcct30-Jan-07 22:23 
GeneralRe: how to get application path Pin
Naveen30-Jan-07 22:33
Naveen30-Jan-07 22:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.