Click here to Skip to main content
15,898,588 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: new / delete : when to delted in this regard, Pin
ptr_Electron12-Jan-09 2:15
ptr_Electron12-Jan-09 2:15 
GeneralRe: new / delete : when to delted in this regard, Pin
Cedric Moonen12-Jan-09 2:26
Cedric Moonen12-Jan-09 2:26 
QuestionXP or Vista style progressbar. Pin
Le@rner12-Jan-09 1:37
Le@rner12-Jan-09 1:37 
QuestionRe: XP or Vista style progressbar. Pin
David Crow12-Jan-09 3:08
David Crow12-Jan-09 3:08 
QuestionMixing managed/unmanaged in C++/CLI Pin
Jon Hulatt12-Jan-09 1:22
Jon Hulatt12-Jan-09 1:22 
NewsRe: Mixing managed/unmanaged in C++/CLI Pin
Iain Clarke, Warrior Programmer12-Jan-09 1:32
Iain Clarke, Warrior Programmer12-Jan-09 1:32 
GeneralRe: Mixing managed/unmanaged in C++/CLI Pin
Jon Hulatt12-Jan-09 1:37
Jon Hulatt12-Jan-09 1:37 
QuestionDialog box LAYOUTRTL issue [modified] Pin
Alex@9C12-Jan-09 1:13
Alex@9C12-Jan-09 1:13 
I am using CProperySheet and CPropertyPage in my application for creating tabbed dialog boxes.
For providing the RTL layout, I am using the WS_EX_LAYOUTRTL for Property Sheet and Property Pages both.
This is doing well.
The Titla bar ( System control and min/max/restore buttons) are now in RTL layout.

Tabs contents are also in RTL layout. However two issues are still remaining opened-

1. OK and CANCEL buttons (that were in the Right Side of the screen before applying WS_EX_LAYOUTRTL style) are now in the Middle of the screen. They should be in the Left of the screen.
(Point to notice is that i have hide the "Help" and "Apply" buttons.)

2. Tabs (Tab Bar) are still coming in the Left side of the screen. No effect of the RTL layout on the tabs (Tab Bar) alignment or in their order.

<br />
void CAllControlsSheet::AddControlPages()<br />
{<br />
	m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);<br />
	m_psh.dwFlags |= PSP_USEHICON;<br />
	m_psh.hIcon = m_hIcon;<br />
	m_psh.dwFlags |= PSH_NOAPPLYNOW; // Lose the Apply Now button<br />
	m_psh.dwFlags |= PSH_RTLREADING ; <br />
	m_psh.dwFlags &= ~PSH_HASHELP;   // Lose the Help button<br />
	<br />
	Invalidate();<br />
<br />
	AddPage(&m_treectrlpage);<br />
	AddPage(&m_animctrlpage);<br />
	AddPage(&m_toolbarpage);<br />
	AddPage(&m_datetimepage);<br />
	AddPage(&m_monthcalpage);<br />
<br />
}<br />
<br />
BEGIN_MESSAGE_MAP(CAllControlsSheet, CPropertySheet)<br />
	//{{AFX_MSG_MAP(CAllControlsSheet)<br />
	ON_WM_QUERYDRAGICON()<br />
	ON_WM_SYSCOMMAND()<br />
	//}}AFX_MSG_MAP<br />
END_MESSAGE_MAP()<br />
<br />
/////////////////////////////////////////////////////////////////////////////<br />
// CAllControlsSheet message handlers<br />
<br />
BOOL CAllControlsSheet::OnInitDialog()<br />
{<br />
	// Add "About..." menu item to system menu.<br />
<br />
	// IDM_ABOUTBOX must be in the system command range.<br />
	ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX);<br />
	ASSERT(IDM_ABOUTBOX < 0xF000);<br />
<br />
	CMenu* pSysMenu = GetSystemMenu(FALSE);<br />
	if (pSysMenu != NULL)<br />
	{<br />
		CString strAboutMenu;<br />
		strAboutMenu.LoadString(IDS_ABOUTBOX);<br />
		if (!strAboutMenu.IsEmpty())<br />
		{<br />
			pSysMenu->AppendMenu(MF_SEPARATOR);<br />
			pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu);<br />
		}<br />
	}<br />
<br />
	SetIcon(m_hIcon, TRUE);<br />
	SetIcon(m_hIcon, FALSE);<br />
	ModifyStyleEx(0, WS_EX_LAYOUTRTL); <br />
	return CPropertySheet::OnInitDialog();<br />
}<br />
<br />


modified on Monday, January 12, 2009 9:45 AM

QuestionGerman ANSI/Unicode umlauts in source code [SOLVED] Pin
sashoalm12-Jan-09 0:59
sashoalm12-Jan-09 0:59 
AnswerRe: German ANSI/Unicode umlauts in source code Pin
Iain Clarke, Warrior Programmer12-Jan-09 1:31
Iain Clarke, Warrior Programmer12-Jan-09 1:31 
GeneralRe: German ANSI/Unicode umlauts in source code Pin
sashoalm12-Jan-09 4:08
sashoalm12-Jan-09 4:08 
QuestionProblems with sending UPD Packets over sendto Pin
CrazyDogg11-Jan-09 23:59
CrazyDogg11-Jan-09 23:59 
AnswerRe: Problems with sending UPD Packets over sendto Pin
Rajkumar R12-Jan-09 0:08
Rajkumar R12-Jan-09 0:08 
GeneralRe: Problems with sending UPD Packets over sendto Pin
CrazyDogg12-Jan-09 0:17
CrazyDogg12-Jan-09 0:17 
AnswerRe: Problems with sending UPD Packets over sendto Pin
Stuart Dootson12-Jan-09 0:11
professionalStuart Dootson12-Jan-09 0:11 
GeneralRe: Problems with sending UPD Packets over sendto Pin
CrazyDogg12-Jan-09 0:18
CrazyDogg12-Jan-09 0:18 
GeneralRe: Problems with sending UPD Packets over sendto Pin
David Crow12-Jan-09 3:11
David Crow12-Jan-09 3:11 
GeneralRe: Problems with sending UPD Packets over sendto Pin
CrazyDogg12-Jan-09 3:41
CrazyDogg12-Jan-09 3:41 
GeneralRe: Problems with sending UPD Packets over sendto Pin
David Crow12-Jan-09 3:45
David Crow12-Jan-09 3:45 
GeneralRe: Problems with sending UPD Packets over sendto Pin
CrazyDogg12-Jan-09 3:48
CrazyDogg12-Jan-09 3:48 
QuestionWhy does ConnectEx need a bound socket? Pin
followait11-Jan-09 23:32
followait11-Jan-09 23:32 
AnswerRe: Why does ConnectEx need a bound socket? Pin
Stuart Dootson12-Jan-09 0:01
professionalStuart Dootson12-Jan-09 0:01 
QuestionSave an image using CImage class Pin
VC++Maniac11-Jan-09 23:02
VC++Maniac11-Jan-09 23:02 
AnswerRe: Save an image using CImage class Pin
CPallini11-Jan-09 23:43
mveCPallini11-Jan-09 23:43 
GeneralRe: Save an image using CImage class Pin
VC++Maniac12-Jan-09 0:10
VC++Maniac12-Jan-09 0:10 

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.