Click here to Skip to main content
15,912,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Interface not responding Pin
Cedric Moonen17-Feb-09 2:07
Cedric Moonen17-Feb-09 2:07 
QuestionResizing frame Pin
baerten17-Feb-09 0:51
baerten17-Feb-09 0:51 
AnswerRe: Resizing frame Pin
Stuart Dootson17-Feb-09 1:03
professionalStuart Dootson17-Feb-09 1:03 
GeneralRe: Resizing frame Pin
baerten17-Feb-09 2:29
baerten17-Feb-09 2:29 
QuestionHow to access child window controls? Pin
Abhijit D. Babar17-Feb-09 0:35
Abhijit D. Babar17-Feb-09 0:35 
AnswerRe: How to access child window controls? Pin
Stuart Dootson17-Feb-09 0:57
professionalStuart Dootson17-Feb-09 0:57 
Questionuse GdiPlus :: Font to SetFont of a static text control or convert GdiPlus :: Font to CFont Pin
_T("No name")17-Feb-09 0:33
_T("No name")17-Feb-09 0:33 
AnswerRe: use GdiPlus :: Font to SetFont of a static text control or convert GdiPlus :: Font to CFont [modified] Pin
Nuri Ismail17-Feb-09 3:17
Nuri Ismail17-Feb-09 3:17 
Here is some code for the conversion:
        // You need a Graphics object for the conversion.
        // If you have CDC or Graphics object, use them.
        // If you don't such an objects below is a sample code for their creation
        CDC* pDC = CDC::FromHandle(::GetDC(NULL));
        Gdiplus::Graphics g(pDC->m_hDC);
       
        // Here is the GDI+ Font
        Gdiplus::Font gdipFont(L"Arial", (REAL)8);
 	
        // We will use a LOGFONT structure for the conversion
        LOGFONT lf;
        
        // Get the LOGFONT from the GDI+ Font
#ifdef _UNICODE
	gdipFont.GetLogFontW(&g, &lf);
#else
	gdipFont.GetLogFontA(&g, &lf);
#endif
	
        // Create the font object
	CFont font;
	font.CreateFontIndirect(&lf);


Hope this helps! Smile | :)

modified on Tuesday, February 17, 2009 9:25 AM

QuestionUser account that connect to a shared folder. Pin
Green Fuze16-Feb-09 23:47
Green Fuze16-Feb-09 23:47 
QuestionProblems with std::ofstream function on std::ios::binary parameter Pin
josip cagalj16-Feb-09 23:35
josip cagalj16-Feb-09 23:35 
AnswerRe: Problems with std::ofstream function on std::ios::binary parameter Pin
Cedric Moonen16-Feb-09 23:41
Cedric Moonen16-Feb-09 23:41 
GeneralRe: Problems with std::ofstream function on std::ios::binary parameter Pin
josip cagalj16-Feb-09 23:49
josip cagalj16-Feb-09 23:49 
GeneralRe: Problems with std::ofstream function on std::ios::binary parameter Pin
josip cagalj17-Feb-09 0:14
josip cagalj17-Feb-09 0:14 
GeneralRe: Problems with std::ofstream function on std::ios::binary parameter Pin
Stuart Dootson17-Feb-09 0:51
professionalStuart Dootson17-Feb-09 0:51 
AnswerRe: Problems with std::ofstream function on std::ios::binary parameter Pin
Stuart Dootson17-Feb-09 0:08
professionalStuart Dootson17-Feb-09 0:08 
GeneralRe: Problems with std::ofstream function on std::ios::binary parameter Pin
josip cagalj17-Feb-09 0:15
josip cagalj17-Feb-09 0:15 
QuestionUsing GDI over OpenGL in Vista Pin
Gastello16-Feb-09 22:50
Gastello16-Feb-09 22:50 
QuestionNeed help on how to move line between two horizontal sliders with slider position [modified] Pin
John50216-Feb-09 22:37
John50216-Feb-09 22:37 
AnswerRe: Need help on how to move line between two horizontal sliders with slider position Pin
«_Superman_»16-Feb-09 23:05
professional«_Superman_»16-Feb-09 23:05 
GeneralRe: Need help on how to move line between two horizontal sliders with slider position [modified] Pin
John50217-Feb-09 0:01
John50217-Feb-09 0:01 
AnswerRe: Need help on how to move line between two horizontal sliders with slider position Pin
«_Superman_»17-Feb-09 1:06
professional«_Superman_»17-Feb-09 1:06 
GeneralRe: Need help on how to move line between two horizontal sliders with slider position [modified] Pin
John50217-Feb-09 1:38
John50217-Feb-09 1:38 
QuestionRe: Need help on how to move line between two horizontal sliders with slider position Pin
«_Superman_»17-Feb-09 2:29
professional«_Superman_»17-Feb-09 2:29 
AnswerRe: Need help on how to move line between two horizontal sliders with slider position [modified] Pin
John50217-Feb-09 2:52
John50217-Feb-09 2:52 
GeneralRe: Need help on how to move line between two horizontal sliders with slider position Pin
«_Superman_»17-Feb-09 19:10
professional«_Superman_»17-Feb-09 19: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.