Click here to Skip to main content
15,903,385 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: work VB project on VC++ MFC exe Pin
Stuart Dootson9-Jan-09 22:34
professionalStuart Dootson9-Jan-09 22:34 
AnswerRe: work VB project on VC++ MFC exe Pin
Hamid_RT9-Jan-09 23:45
Hamid_RT9-Jan-09 23:45 
QuestionPrint preview list control Pin
Member 23588019-Jan-09 21:07
Member 23588019-Jan-09 21:07 
AnswerRe: Print preview list control Pin
Stuart Dootson9-Jan-09 22:32
professionalStuart Dootson9-Jan-09 22:32 
AnswerRe: Print preview list control Pin
Hamid_RT9-Jan-09 23:46
Hamid_RT9-Jan-09 23:46 
Questionview in a childframe Pin
Taruni9-Jan-09 18:47
Taruni9-Jan-09 18:47 
AnswerRe: view in a childframe Pin
Stuart Dootson9-Jan-09 22:41
professionalStuart Dootson9-Jan-09 22:41 
QuestionHow to set RTL layout for a CPropertySheet. Pin
Alex@9C9-Jan-09 17:50
Alex@9C9-Jan-09 17:50 

I am to provide RTL Layout for the CPropertySheet.
As it is derived from the CWnd, I am setting WS_EX_LAYOUTRTL as the extended style.
But it is doing nothing. Just added a Debug Assertion Failure to my code.
Please suggest me how can i provide the RTL layout for the CPropertySheet.

<br />
#include "stdafx.h"<br />
#include "CmnCtrl1.h"<br />
#include "propsht.h"<br />
<br />
#ifdef _DEBUG<br />
#define new DEBUG_NEW<br />
#undef THIS_FILE<br />
static char THIS_FILE[] = __FILE__;<br />
#endif<br />
<br />
/////////////////////////////////////////////////////////////////////////////<br />
// CCmnCtrl1App<br />
<br />
BEGIN_MESSAGE_MAP(CCmnCtrl1App, CWinApp)<br />
	//{{AFX_MSG_MAP(CCmnCtrl1App)<br />
	//}}AFX_MSG<br />
	ON_COMMAND(ID_HELP, CWinApp::OnHelp)<br />
END_MESSAGE_MAP()<br />
<br />
/////////////////////////////////////////////////////////////////////////////<br />
// CCmnCtrl1App construction<br />
<br />
CCmnCtrl1App::CCmnCtrl1App()<br />
{<br />
	<br />
}<br />
<br />
/////////////////////////////////////////////////////////////////////////////<br />
// The one and only CCmnCtrl1App object<br />
<br />
CCmnCtrl1App theApp;<br />
<br />
/////////////////////////////////////////////////////////////////////////////<br />
// CCmnCtrl1App initialization<br />
<br />
BOOL CCmnCtrl1App::InitInstance()<br />
{<br />
	AfxEnableControlContainer();<br />
<br />
	// Standard initialization<br />
<br />
	CAllControlsSheet   allcontrolssheet(_T("Common Controls Sample"));<br />
	allcontrolssheet.ModifyStyleEx(0, WS_EX_LAYOUTRTL);<br />
	allcontrolssheet.m_psh.dwFlags |= PSH_RTLREADING ;<br />
	m_pMainWnd = &allcontrolssheet;<br />
	m_pMainWnd->ModifyStyleEx(0, WS_EX_LAYOUTRTL);<br />
	allcontrolssheet.DoModal();<br />
	return FALSE;<br />
}<br />
<br />

AnswerRe: How to set RTL layout for a CPropertySheet. Pin
Stuart Dootson9-Jan-09 22:30
professionalStuart Dootson9-Jan-09 22:30 
GeneralRe: How to set RTL layout for a CPropertySheet. Pin
Alex@9C9-Jan-09 23:15
Alex@9C9-Jan-09 23:15 
GeneralRe: How to set RTL layout for a CPropertySheet. Pin
Stuart Dootson9-Jan-09 23:52
professionalStuart Dootson9-Jan-09 23:52 
GeneralRe: How to set RTL layout for a CPropertySheet. Pin
Alex@9C10-Jan-09 0:27
Alex@9C10-Jan-09 0:27 
GeneralRe: How to set RTL layout for a CPropertySheet. Pin
Stuart Dootson10-Jan-09 1:59
professionalStuart Dootson10-Jan-09 1:59 
GeneralRe: How to set RTL layout for a CPropertySheet. Pin
Alex@9C11-Jan-09 18:30
Alex@9C11-Jan-09 18:30 
GeneralRe: How to set RTL layout for a CPropertySheet. Pin
123Brenda22-Apr-11 10:21
123Brenda22-Apr-11 10:21 
QuestionHow to Change Font Pin
Max++9-Jan-09 17:01
Max++9-Jan-09 17:01 
AnswerRe: How to Change Font Pin
Nibu babu thomas9-Jan-09 17:19
Nibu babu thomas9-Jan-09 17:19 
Questionscenary in the client area using visual c++ Pin
valli389-Jan-09 13:24
valli389-Jan-09 13:24 
AnswerWTF? Pin
leckey9-Jan-09 15:27
leckey9-Jan-09 15:27 
Questiondivide the client area in to 4 quadrants and store them with different gradient patterns using visual c++ Pin
valli389-Jan-09 13:21
valli389-Jan-09 13:21 
Questiondivide the client area in to 4 quadrants and store them with different gradient patterns [modified] Pin
valli389-Jan-09 13:20
valli389-Jan-09 13:20 
QuestionVector problem in VC++ 2008 Pin
pratap19809-Jan-09 9:03
pratap19809-Jan-09 9:03 
AnswerRe: Vector problem in VC++ 2008 Pin
Stuart Dootson9-Jan-09 12:02
professionalStuart Dootson9-Jan-09 12:02 
QuestionHow to update MFC Control from ActiveX? Pin
Member 30175479-Jan-09 8:20
Member 30175479-Jan-09 8:20 
AnswerRe: How to update MFC Control from ActiveX? Pin
Member 301754712-Jan-09 5:33
Member 301754712-Jan-09 5: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.