Click here to Skip to main content
15,913,234 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: regarding mouse events..... Pin
Blake Miller16-Nov-04 4:43
Blake Miller16-Nov-04 4:43 
GeneralRe: regarding mouse events..... Pin
namaskaaram16-Nov-04 17:52
namaskaaram16-Nov-04 17:52 
GeneralRe: regarding mouse events..... Pin
Blake Miller17-Nov-04 4:05
Blake Miller17-Nov-04 4:05 
GeneralRe: regarding mouse events..... Pin
namaskaaram17-Nov-04 18:50
namaskaaram17-Nov-04 18:50 
GeneralRe: regarding mouse events..... Pin
Blake Miller18-Nov-04 4:04
Blake Miller18-Nov-04 4:04 
GeneralCoTaskMemAlloc and BITMAPINFO Pin
dmxdmxdmx0516-Nov-04 3:39
dmxdmxdmx0516-Nov-04 3:39 
GeneralRe: CoTaskMemAlloc and BITMAPINFO Pin
Blake Miller16-Nov-04 4:49
Blake Miller16-Nov-04 4:49 
Generalusing non-English languages in visual c++.... Pin
shah170116-Nov-04 3:11
shah170116-Nov-04 3:11 
I'm attempting to write an MFC based program that uses Arabic fonts for an Arabic class I'm taking. I'm using WinXP and have the fonts installed (i.e. I can type in Arabic in MS word), but I can't seem to associate one of those fonts with a CFont object. Well I can, but it seems that text still comes out in English. I set the justification mode from right to left and specified the enumerated type ARABIC_CHARSET when initializing the CFont. Here is a sample of the display callback in my code where I'm simply just outputting the string "hahah". It shoudl come out in
Arabic (the letters "sheen" and "alif"). Any ideas? Do I need to link to some DLL? Does some sort of preprocessor definition have to be declared? Oh and I'm using visual c++ 6.0.

void CFACKDlg::OnPaint()
{
if (IsIconic())
{
CPaintDC dc(this); // device context for painting

SendMessage(WM_ICONERASEBKGND, (WPARAM) dc.GetSafeHdc(), 0);

// Center icon in client rectangle
int cxIcon = GetSystemMetrics(SM_CXICON);
int cyIcon = GetSystemMetrics(SM_CYICON);
CRect rect;
GetClientRect(&rect);
int x = (rect.Width() - cxIcon + 1) / 2;
int y = (rect.Height() - cyIcon + 1) / 2;

// Draw the icon
dc.DrawIcon(x, y, m_hIcon);
}
else
{
CPaintDC dc(this);
dc.SetTextColor(RGB(0,0,0));
dc.SetTextAlign(TA_RTLREADING);
fntArab.CreateFont(rcClient.Height()/20, 0, 0, 0,
FW_DONTCARE, FALSE, FALSE, 0, ARABIC_CHARSET,
OUT_TT_PRECIS, CLIP_LH_ANGLES,
DEFAULT_QUALITY, FF_DONTCARE, "arabic transparent bold" );
dc.SelectObject(&fntArab);
dc.TextOut(30,90, (CString)"hahah");
CDialog::OnPaint();
}
}


M.A. Shah
Computer Science Student - Penn State University
GeneralRe: want icons in subitems of listview, but not first column Pin
BlackDice16-Nov-04 2:51
BlackDice16-Nov-04 2:51 
QuestionHow do I... Pin
KORCARI16-Nov-04 2:10
KORCARI16-Nov-04 2:10 
AnswerRe: How do I... Pin
David Crow16-Nov-04 2:44
David Crow16-Nov-04 2:44 
QuestionHow to make Custom Explorer Bars to Internet Explorer? Pin
pubududilena16-Nov-04 1:38
pubududilena16-Nov-04 1:38 
AnswerRe: How to make Custom Explorer Bars to Internet Explorer? Pin
ThatsAlok16-Nov-04 2:34
ThatsAlok16-Nov-04 2:34 
QuestionHow to import both adoce31.dll & adoxce31.dll? Pin
george ivanov16-Nov-04 0:56
george ivanov16-Nov-04 0:56 
AnswerRe: How to import both adoce31.dll & adoxce31.dll? Pin
Antony M Kancidrowski16-Nov-04 1:47
Antony M Kancidrowski16-Nov-04 1:47 
AnswerRe: How to import both adoce31.dll & adoxce31.dll? Pin
RChin16-Nov-04 2:02
RChin16-Nov-04 2:02 
GeneralMDI CFormView and Dialog Templates Pin
navalgap16-Nov-04 0:10
navalgap16-Nov-04 0:10 
Questionhow do i put a bmp into an exe file??? Pin
namaskaaram15-Nov-04 23:58
namaskaaram15-Nov-04 23:58 
AnswerRe: how do i put a bmp into an exe file??? Pin
User 21559716-Nov-04 0:25
User 21559716-Nov-04 0:25 
GeneralRe: how do i put a bmp into an exe file??? Pin
namaskaaram16-Nov-04 0:53
namaskaaram16-Nov-04 0:53 
GeneralRe: how do i put a bmp into an exe file??? Pin
ThatsAlok16-Nov-04 2:37
ThatsAlok16-Nov-04 2:37 
GeneralRe: how do i put a bmp into an exe file???.....not the desired output!!!!! Pin
namaskaaram16-Nov-04 3:18
namaskaaram16-Nov-04 3:18 
GeneralRe: how do i put a bmp into an exe file???.....not the desired output!!!!! Pin
Antony M Kancidrowski16-Nov-04 4:36
Antony M Kancidrowski16-Nov-04 4:36 
Generalthanx!!!!! Pin
namaskaaram16-Nov-04 19:11
namaskaaram16-Nov-04 19:11 
GeneralRe: how do i put a bmp into an exe file???.....not the desired output!!!!! Pin
Jon Hulatt16-Nov-04 4:59
Jon Hulatt16-Nov-04 4:59 

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.