Click here to Skip to main content
15,903,201 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Multiple VS Pin
Todd Smith26-Sep-02 8:48
Todd Smith26-Sep-02 8:48 
GeneralCompareItem in listbox Pin
hajo26-Sep-02 4:21
hajo26-Sep-02 4:21 
GeneralRe: CompareItem in listbox Pin
jmkhael26-Sep-02 4:22
jmkhael26-Sep-02 4:22 
GeneralRe: CompareItem in listbox Pin
Tomasz Sowinski26-Sep-02 4:26
Tomasz Sowinski26-Sep-02 4:26 
GeneralRe: CompareItem in listbox Pin
hajo26-Sep-02 7:06
hajo26-Sep-02 7:06 
GeneralRe: CompareItem in listbox Pin
Tomasz Sowinski26-Sep-02 7:16
Tomasz Sowinski26-Sep-02 7:16 
GeneralRe: CompareItem in listbox Pin
hajo26-Sep-02 7:07
hajo26-Sep-02 7:07 
GeneralText Size in a CStatic Control Pin
David Viggiano26-Sep-02 4:17
David Viggiano26-Sep-02 4:17 
Does anyone know of a way to get the dialog units for the text in a CStatic control? I'm trying to dynamically resize some controls and what MSDN says to do seems to always return 25-50% too big.

Here is what I am trying:

CDC *pDC;
CSize cStringSize;

pDC = m_MyStaticControl.GetWindowDC();
cStringSize = pDC->GetTextExtent ("Some string I want the size of...");

I've also tried DrawText(...) but that returns the same size.

Thanks for the help,
David
GeneralRe: Text Size in a CStatic Control Pin
Tomasz Sowinski26-Sep-02 4:47
Tomasz Sowinski26-Sep-02 4:47 
GeneralRe: Text Size in a CStatic Control Pin
David Viggiano26-Sep-02 5:51
David Viggiano26-Sep-02 5:51 
GeneralRe: Text Size in a CStatic Control Pin
Tomasz Sowinski26-Sep-02 6:13
Tomasz Sowinski26-Sep-02 6:13 
GeneralRe: Text Size in a CStatic Control Pin
David Viggiano26-Sep-02 6:23
David Viggiano26-Sep-02 6:23 
Generalmanipulating arrays Pin
M.Leary26-Sep-02 4:07
M.Leary26-Sep-02 4:07 
GeneralRe: manipulating arrays Pin
Daniel Ferguson26-Sep-02 5:09
Daniel Ferguson26-Sep-02 5:09 
GeneralRe: manipulating arrays Pin
M.Leary26-Sep-02 5:56
M.Leary26-Sep-02 5:56 
Generalare strings in string table in unicode if _UNICODE is defined Pin
tomc26-Sep-02 4:05
tomc26-Sep-02 4:05 
GeneralRe: are strings in string table in unicode if _UNICODE is defined Pin
Tomasz Sowinski26-Sep-02 4:11
Tomasz Sowinski26-Sep-02 4:11 
GeneralRe: are strings in string table in unicode if _UNICODE is defined Pin
Steve S26-Sep-02 22:24
Steve S26-Sep-02 22:24 
GeneralCFile question Pin
ns26-Sep-02 4:04
ns26-Sep-02 4:04 
GeneralRe: CFile question Pin
Tomasz Sowinski26-Sep-02 4:08
Tomasz Sowinski26-Sep-02 4:08 
GeneralThanks for that handy tip! Pin
ns26-Sep-02 4:18
ns26-Sep-02 4:18 
GeneralQuestion about COM Monikers and the ROT Pin
[James Pullicino]26-Sep-02 3:39
[James Pullicino]26-Sep-02 3:39 
GeneralRe: Question about COM Monikers and the ROT Pin
jmkhael26-Sep-02 4:54
jmkhael26-Sep-02 4:54 
GeneralThreads in Windows 2000 Pin
Anonymous26-Sep-02 3:15
Anonymous26-Sep-02 3:15 
GeneralRe: Threads in Windows 2000 Pin
Tomasz Sowinski26-Sep-02 3:22
Tomasz Sowinski26-Sep-02 3:22 

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.