Click here to Skip to main content
15,893,487 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Painting a bitmap over a CStatic Bitmap Pin
29-Jun-01 12:20
suss29-Jun-01 12:20 
GeneralRe: Painting a bitmap over a CStatic Bitmap Pin
29-Jun-01 13:56
suss29-Jun-01 13:56 
GeneralArrays n'stuff Pin
John Uhlenbrock29-Jun-01 7:04
John Uhlenbrock29-Jun-01 7:04 
GeneralRe: Arrays n'stuff Pin
Michael Dunn29-Jun-01 7:36
sitebuilderMichael Dunn29-Jun-01 7:36 
GeneralRe: Arrays n'stuff Pin
John Uhlenbrock29-Jun-01 10:32
John Uhlenbrock29-Jun-01 10:32 
GeneralRe: Arrays n'stuff Pin
Ben Burnett29-Jun-01 11:34
Ben Burnett29-Jun-01 11:34 
QuestionHow do I get LOGFONT from an IFont without using CFont? Pin
Bart-Man29-Jun-01 6:18
Bart-Man29-Jun-01 6:18 
AnswerRe: How do I get LOGFONT from an IFont without using CFont? Pin
PJ Arends29-Jun-01 17:00
professionalPJ Arends29-Jun-01 17:00 
from mapidefs.h line 396
typedef union tagCY {
    struct {
#ifdef _MAC
        long      Hi;
        long Lo;
#else
        unsigned long Lo;
        long      Hi;
#endif
    };
    LONGLONG int64;
} CY;

and from MSDN
IFont::get_Size
Retrieves the point size of the font expressed in a 64-bit CY variable. The upper 32-bits of this value contains the
integer point size and the lower 32-bits contains the fractional point size.

HRESULT get_Size(
  CY* psize  //Pointer to the font size.
);
 
Parameters
psize 
[out] Pointer to the caller-allocated variable that receives the size. 
Return Values
The method supports the standard return value E_UNEXPECTED, as well as the following: 

S_OK 
The size was retrieved successfully. 
E_POINTER 
The address in psize is not valid. For example, it may be NULL.

CY CYsize;
pIFont->get_Size(&CYsize);
int Height = CYSize.Hi;


---
Multitasking: Screwing up several things at once.
AnswerRe: How do I get LOGFONT from an IFont without using CFont? Pin
Ben Burnett29-Jun-01 17:01
Ben Burnett29-Jun-01 17:01 
GeneralGetPrivateProfileString() keeps failing Pin
David Osborn29-Jun-01 5:49
David Osborn29-Jun-01 5:49 
GeneralRe: GetPrivateProfileString() keeps failing Pin
#realJSOP1-Jul-01 3:17
mve#realJSOP1-Jul-01 3:17 
QuestionWhat control should I use??? Pin
Michael Martin29-Jun-01 5:39
professionalMichael Martin29-Jun-01 5:39 
GeneralGetting keyboard calls from external application windows Pin
David Higgins29-Jun-01 4:25
David Higgins29-Jun-01 4:25 
GeneralRe: Getting keyboard calls from external application windows Pin
29-Jun-01 4:46
suss29-Jun-01 4:46 
GeneralSplitter Windows Pin
Drake Elsari29-Jun-01 4:08
Drake Elsari29-Jun-01 4:08 
GeneralRe: Splitter Windows Pin
Drake Elsari29-Jun-01 15:53
Drake Elsari29-Jun-01 15:53 
GeneralRe: Splitter Windows Pin
Ben Burnett29-Jun-01 16:55
Ben Burnett29-Jun-01 16:55 
GeneralRe: Splitter Windows Pin
Drake Elsari30-Jun-01 4:30
Drake Elsari30-Jun-01 4:30 
GeneralRe: Splitter Windows Pin
Drake Elsari30-Jun-01 8:08
Drake Elsari30-Jun-01 8:08 
GeneralRe: Splitter Windows Pin
Ben Burnett30-Jun-01 8:29
Ben Burnett30-Jun-01 8:29 
GeneralRe: Splitter Windows Pin
Drake Elsari30-Jun-01 14:48
Drake Elsari30-Jun-01 14:48 
GeneralInternational topix Pin
29-Jun-01 4:00
suss29-Jun-01 4:00 
GeneralCOleDateTime Pin
Gérald Mercet29-Jun-01 3:57
Gérald Mercet29-Jun-01 3:57 
GeneralRe: COleDateTime Pin
Bret Faller29-Jun-01 6:39
Bret Faller29-Jun-01 6:39 
GeneralRe: COleDateTime Pin
1-Jul-01 21:35
suss1-Jul-01 21:35 

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.