Click here to Skip to main content
15,900,258 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow draw Region border with pen style? Pin
wangyiming1-Apr-02 0:24
wangyiming1-Apr-02 0:24 
AnswerRe: how draw Region border with pen style? Pin
Paul M Watt1-Apr-02 7:55
mentorPaul M Watt1-Apr-02 7:55 
GeneralRe: how draw Region border with pen style? Pin
wangyiming1-Apr-02 14:51
wangyiming1-Apr-02 14:51 
GeneralRe: how draw Region border with pen style? Pin
srikanthvarma26-Dec-02 22:07
srikanthvarma26-Dec-02 22:07 
Generalruntime = no event/command handlers Pin
bracoute31-Mar-02 22:41
bracoute31-Mar-02 22:41 
GeneralRe: runtime = no event/command handlers Pin
Joaquín M López Muñoz31-Mar-02 22:47
Joaquín M López Muñoz31-Mar-02 22:47 
GeneralRe: runtime = no event/command handlers Pin
Christian Graus1-Apr-02 0:26
protectorChristian Graus1-Apr-02 0:26 
Generalint to CString (look simple but.....) Pin
bracoute31-Mar-02 22:36
bracoute31-Mar-02 22:36 
Hello programmers,

i'm blocked on a issue, i've called a CFontDialog dialog and i got the font by assigning dlg.GetFaceName() to a CString variable and now the dlg.GetSize(), used to get font size, returns an integer which i stored in variable size. But now i have to display the font size in a CEditView.... that's where the problem arise.... i cannot convert the int size variable to a CString variable that can be displayed on the CEditView. Can somebody help me convert the int to CString...

i used GetEditCtrl.ReplaceSel() to input the font size on the CEditView but the GetEditCtrl.ReplaceSel() only accepts strings... The code is used is listed below


[ccode]

if(dlg.DoModal() == IDOK)
{

CString text;
text=dlg.GetFaceName();
GetEditCtrl().ReplaceSel(text);

int size;
size = dlg.GetSize();
GetEditCtrl().ReplaceSel(size);
// This is where i get the error message saying cannot convert
// int to CString.
}
[/ccode]Cry | :((

56Kbps of sighs
GeneralRe: int to CString (look simple but.....) Pin
Christian Graus31-Mar-02 22:52
protectorChristian Graus31-Mar-02 22:52 
GeneralExecuting commands on command line Pin
Member 1697731-Mar-02 18:49
Member 1697731-Mar-02 18:49 
GeneralRe: Executing commands on command line Pin
Joaquín M López Muñoz31-Mar-02 18:59
Joaquín M López Muñoz31-Mar-02 18:59 
GeneralAnother programming question Pin
David Wulff31-Mar-02 16:13
David Wulff31-Mar-02 16:13 
GeneralRe: Another programming question Pin
Nick Parker31-Mar-02 16:50
protectorNick Parker31-Mar-02 16:50 
GeneralRe: Another programming question Pin
Nish Nishant31-Mar-02 16:58
sitebuilderNish Nishant31-Mar-02 16:58 
GeneralRe: Another programming question Pin
ColinDavies31-Mar-02 16:56
ColinDavies31-Mar-02 16:56 
GeneralRe: Another programming question Pin
Michael Dunn31-Mar-02 19:19
sitebuilderMichael Dunn31-Mar-02 19:19 
GeneralRe: Another programming question Pin
David Wulff1-Apr-02 1:45
David Wulff1-Apr-02 1:45 
QuestionHow to get the correct client rect of the view? Pin
Feng Qin31-Mar-02 14:58
Feng Qin31-Mar-02 14:58 
AnswerRe: How to get the correct client rect of the view? Pin
PJ Arends31-Mar-02 15:10
professionalPJ Arends31-Mar-02 15:10 
GeneralRe: How to get the correct client rect of the view? Pin
Feng Qin31-Mar-02 15:53
Feng Qin31-Mar-02 15:53 
GeneralRe: How to get the correct client rect of the view? Pin
Christian Graus31-Mar-02 16:00
protectorChristian Graus31-Mar-02 16:00 
GeneralRe: How to get the correct client rect of the view? Pin
Feng Qin1-Apr-02 0:35
Feng Qin1-Apr-02 0:35 
GeneralRe: How to get the correct client rect of the view? Pin
Christian Graus1-Apr-02 0:53
protectorChristian Graus1-Apr-02 0:53 
GeneralRe: How to get the correct client rect of the view? Pin
Christian Graus1-Apr-02 1:04
protectorChristian Graus1-Apr-02 1:04 
GeneralRe: How to get the correct client rect of the view? Pin
Feng Qin1-Apr-02 14:39
Feng Qin1-Apr-02 14:39 

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.