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

C / C++ / MFC

 
QuestionAddPrinter Windows API call help Pin
TaffyApple12-Jan-09 7:28
TaffyApple12-Jan-09 7:28 
AnswerRe: AddPrinter Windows API call help Pin
Graham Bradshaw12-Jan-09 12:25
Graham Bradshaw12-Jan-09 12:25 
GeneralRe: AddPrinter Windows API call help Pin
TaffyApple12-Jan-09 21:47
TaffyApple12-Jan-09 21:47 
GeneralRe: AddPrinter Windows API call help Pin
Graham Bradshaw12-Jan-09 22:16
Graham Bradshaw12-Jan-09 22:16 
GeneralRe: AddPrinter Windows API call help Pin
TaffyApple13-Jan-09 1:43
TaffyApple13-Jan-09 1:43 
GeneralRe: AddPrinter Windows API call help Pin
Graham Bradshaw13-Jan-09 2:21
Graham Bradshaw13-Jan-09 2:21 
GeneralRe: AddPrinter Windows API call help Pin
TaffyApple13-Jan-09 3:00
TaffyApple13-Jan-09 3:00 
QuestionRight to Left alignment of the DialogBox i Pin
Alex@9C12-Jan-09 6:58
Alex@9C12-Jan-09 6:58 
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 />

QuestionFlushing the content of an std::wstring to an UTF-8 encoded text file .. [SOLVED] Pin
Ahmed Charfeddine12-Jan-09 5:38
Ahmed Charfeddine12-Jan-09 5:38 
AnswerRe: Flushing the content of an std::wstring to an UTF-8 encoded text file .. Pin
Mark Salsbery12-Jan-09 7:01
Mark Salsbery12-Jan-09 7:01 
GeneralRe: Flushing the content of an std::wstring to an UTF-8 encoded text file .. Pin
Ahmed Charfeddine14-Jan-09 7:06
Ahmed Charfeddine14-Jan-09 7:06 
GeneralRe: Flushing the content of an std::wstring to an UTF-8 encoded text file .. Pin
Mark Salsbery14-Jan-09 7:24
Mark Salsbery14-Jan-09 7:24 
Questionatomic file write Pin
Dave_12-Jan-09 5:00
Dave_12-Jan-09 5:00 
AnswerRe: atomic file write Pin
Rajasekharan Vengalil12-Jan-09 5:21
Rajasekharan Vengalil12-Jan-09 5:21 
GeneralRe: atomic file write Pin
Dave_12-Jan-09 7:21
Dave_12-Jan-09 7:21 
GeneralRe: atomic file write Pin
Rajasekharan Vengalil12-Jan-09 7:29
Rajasekharan Vengalil12-Jan-09 7:29 
GeneralRe: atomic file write Pin
Dave_12-Jan-09 7:31
Dave_12-Jan-09 7:31 
GeneralRe: atomic file write Pin
Rajasekharan Vengalil12-Jan-09 9:11
Rajasekharan Vengalil12-Jan-09 9:11 
QuestionAgain New / Delete [modified] Pin
ptr_Electron12-Jan-09 2:33
ptr_Electron12-Jan-09 2:33 
GeneralAgain confusing formatting. Pin
Iain Clarke, Warrior Programmer12-Jan-09 2:50
Iain Clarke, Warrior Programmer12-Jan-09 2:50 
AnswerRe: Again New / Delete Pin
Iain Clarke, Warrior Programmer12-Jan-09 2:53
Iain Clarke, Warrior Programmer12-Jan-09 2:53 
GeneralRe: Again New / Delete Pin
CPallini13-Jan-09 0:15
mveCPallini13-Jan-09 0:15 
AnswerRe: Again New / Delete Pin
Maximilien12-Jan-09 3:12
Maximilien12-Jan-09 3:12 
AnswerRe: Again New / Delete Pin
Cedric Moonen12-Jan-09 3:23
Cedric Moonen12-Jan-09 3:23 
AnswerRe: Again New / Delete Pin
Rajesh R Subramanian12-Jan-09 5:29
professionalRajesh R Subramanian12-Jan-09 5:29 

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.