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

C / C++ / MFC

 
GeneralRe: SetLayeredWindowAttributes, no effect... maybe this... Pin
JHLee15-Oct-01 16:07
JHLee15-Oct-01 16:07 
GeneralFunctor help ( STL problem) Pin
Christian Graus11-Oct-01 14:19
protectorChristian Graus11-Oct-01 14:19 
GeneralRe: Functor help ( STL problem) Pin
Christian Graus11-Oct-01 14:28
protectorChristian Graus11-Oct-01 14:28 
General_StreamPtr (ADO object) Pin
Hadi Rezaee11-Oct-01 13:25
Hadi Rezaee11-Oct-01 13:25 
GeneralRe: _StreamPtr (ADO object) Pin
Rashid Thadha12-Oct-01 6:44
Rashid Thadha12-Oct-01 6:44 
GeneralRe: _StreamPtr (ADO object) Pin
Hadi Rezaee13-Oct-01 12:19
Hadi Rezaee13-Oct-01 12:19 
Generalfont compatibility Pin
Vu Nguyen11-Oct-01 13:22
Vu Nguyen11-Oct-01 13:22 
GeneralRe: font compatibility Pin
Bernhard11-Oct-01 19:49
Bernhard11-Oct-01 19:49 
this code can be used to detect the settings...
CDC ScreenDC;
ScreenDC.CreateIC(_T("DISPLAY"), NULL, NULL, NULL);
const int x = ScreenDC.GetDeviceCaps(LOGPIXELSX);
const int y = ScreenDC.GetDeviceCaps(LOGPIXELSY);

if (x == 96 && y == 96)
{
   //Small Font
}  
else if (x == 120 && y == 120)
{
   //Large Font
}  
else
{
   //Custom Font setting
}  

the only real workaround for this problem is to use, depending on the small / large font setting, two different dialog templates.. YUCK...
i don't know any better solution (other than banning the LARGE fonts).. so i would be pleased if anybody knew a better workaround..

Bernhard


"The remarkable thing about my mother is that for thirty years she served us nothing but leftovers. The original meal has never been found." Calvin Trillin
GeneralThe pow function for integers Pin
Sprudling11-Oct-01 13:22
Sprudling11-Oct-01 13:22 
GeneralRe: The pow function for integers Pin
Vu Nguyen11-Oct-01 14:46
Vu Nguyen11-Oct-01 14:46 
GeneralCreating dynamic array .. Pin
Hadi Rezaee11-Oct-01 12:19
Hadi Rezaee11-Oct-01 12:19 
GeneralRe: Creating dynamic array .. Pin
Nemanja Trifunovic11-Oct-01 12:39
Nemanja Trifunovic11-Oct-01 12:39 
GeneralRe: Creating dynamic array .. Pin
Christian Graus11-Oct-01 12:47
protectorChristian Graus11-Oct-01 12:47 
GeneralRe: Creating dynamic array .. Pin
Hadi Rezaee11-Oct-01 13:37
Hadi Rezaee11-Oct-01 13:37 
GeneralRe: Creating dynamic array .. Pin
Christian Graus11-Oct-01 13:55
protectorChristian Graus11-Oct-01 13:55 
GeneralRe: Creating dynamic array .. Pin
Hadi Rezaee11-Oct-01 14:09
Hadi Rezaee11-Oct-01 14:09 
GeneralRe: Creating dynamic array .. Pin
Christian Graus11-Oct-01 14:13
protectorChristian Graus11-Oct-01 14:13 
GeneralRe: Creating dynamic array .. Pin
Mike Burston11-Oct-01 13:31
Mike Burston11-Oct-01 13:31 
GeneralRe: How about CPtrList or CPtrArray? Pin
Masaaki Onishi11-Oct-01 15:18
Masaaki Onishi11-Oct-01 15:18 
GeneralBitmaps & pixels Pin
11-Oct-01 12:06
suss11-Oct-01 12:06 
GeneralRe: Bitmaps & pixels Pin
Christian Graus11-Oct-01 12:21
protectorChristian Graus11-Oct-01 12:21 
GeneralRe: Bitmaps & pixels Pin
11-Oct-01 13:14
suss11-Oct-01 13:14 
GeneralRe: Bitmaps & pixels Pin
Christian Graus11-Oct-01 13:23
protectorChristian Graus11-Oct-01 13:23 
GeneralRe: Bitmaps & pixels Pin
11-Oct-01 14:05
suss11-Oct-01 14:05 
GeneralRe: Bitmaps & pixels Pin
Christian Graus11-Oct-01 14:27
protectorChristian Graus11-Oct-01 14:27 

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.