Click here to Skip to main content
16,006,013 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: sending messages to the main window Pin
kfaday31-May-04 2:50
kfaday31-May-04 2:50 
Generalerror C2065: 'cout' : undeclared identifier Pin
Anonymous30-May-04 13:43
Anonymous30-May-04 13:43 
GeneralRe: error C2065: 'cout' : undeclared identifier Pin
kfaday30-May-04 14:37
kfaday30-May-04 14:37 
GeneralRe: error C2065: 'cout' : undeclared identifier Pin
Michael Dunn30-May-04 16:25
sitebuilderMichael Dunn30-May-04 16:25 
Generalform background bitmap Pin
zubeido30-May-04 13:41
zubeido30-May-04 13:41 
GeneralRe: form background bitmap Pin
Michael Dunn30-May-04 16:27
sitebuilderMichael Dunn30-May-04 16:27 
GeneralRe: form background bitmap Pin
Aizaz31-May-04 2:14
Aizaz31-May-04 2:14 
Generalfunny working ListBox - help! Pin
Anonymous30-May-04 11:46
Anonymous30-May-04 11:46 
Hi!

I have a problem with setting the character set in my ListBox (List). When I create a CFont object with a specific character set and I set that font in the Device Context recieved from the ListBox, then it is OK. I can write through that DC in the chosen charset. See Code :
CFont * font = new CFont; 
CFont *oldFont; 
CPaintDC dc( List ); 
font->CreateFont (28,0,0,0,700,0,0,0, 
	RUSSIAN_CHARSET, OUT_DEFAULT_PRECIS, 
	CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, 
	DEFAULT_PITCH|FF_DONTCARE, "Arial"); 
oldFont = dc.SelectObject( font); 
dc.ExtTextOut(10,170,0,NULL,"some text", 
strlen("some text"),NULL); 

!!!!!!!!! BUT !!!!!!!!!
If I set that font right in my ListBox and want to have the text added with code :
<br />
List->SetFont( font, TRUE); <br />
List->AddString( "some other text" ); <br />

in the chosen charset, then it DOES NOT work !
However the added text has the other parameters of the chosen font ( Height and so on) but the charset is the original (standard) one
Does anyone know how to force the ListBox to accept the charset from the font also ? Or it might be a bug in my Visual Studio ?
PLEASE HELP!
GeneralDeriving Edit Box Control Pin
Grahamfff30-May-04 11:11
Grahamfff30-May-04 11:11 
GeneralC++ Launches File Pin
vinniez_ok30-May-04 9:22
vinniez_ok30-May-04 9:22 
GeneralRe: C++ Launches File Pin
Ravi Bhavnani30-May-04 9:45
professionalRavi Bhavnani30-May-04 9:45 
GeneralRe: C++ Launches File Pin
Michael Dunn30-May-04 10:09
sitebuilderMichael Dunn30-May-04 10:09 
GeneralRe: C++ Launches File Pin
vinniez_ok30-May-04 13:04
vinniez_ok30-May-04 13:04 
GeneralRe: C++ Launches File Pin
Michael Dunn30-May-04 16:30
sitebuilderMichael Dunn30-May-04 16:30 
GeneralRe: C++ Launches File Pin
vinniez_ok30-May-04 17:14
vinniez_ok30-May-04 17:14 
GeneralPrinting A report in A database Pin
Youngranger30-May-04 8:30
Youngranger30-May-04 8:30 
Questionhow to get IDirectNotify Pin
laia30-May-04 8:08
laia30-May-04 8:08 
AnswerRe: how to get IDirectNotify Pin
Alexander M.,30-May-04 11:40
Alexander M.,30-May-04 11:40 
Generalthis is my method Pin
laia31-May-04 2:59
laia31-May-04 2:59 
GeneralUnicode Programming Pin
Truong D. Toan30-May-04 7:46
Truong D. Toan30-May-04 7:46 
GeneralRe: Unicode Programming Pin
f6430-May-04 8:03
f6430-May-04 8:03 
GeneralRe: Unicode Programming Pin
Truong D. Toan30-May-04 20:01
Truong D. Toan30-May-04 20:01 
GeneralRe: Unicode Programming Pin
f6431-May-04 8:05
f6431-May-04 8:05 
GeneralRe: Unicode Programming Pin
Diddy1-Jun-04 5:31
Diddy1-Jun-04 5:31 
GeneralPrinting Bitmaps Pin
Sergio Batarce30-May-04 5:56
Sergio Batarce30-May-04 5:56 

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.