Click here to Skip to main content
15,922,533 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: related shellexecute function Pin
toxcct23-Mar-06 2:17
toxcct23-Mar-06 2:17 
GeneralRe: related shellexecute function Pin
baldha rakesh23-Mar-06 2:35
baldha rakesh23-Mar-06 2:35 
GeneralRe: related shellexecute function Pin
toxcct23-Mar-06 2:37
toxcct23-Mar-06 2:37 
AnswerRe: related shellexecute function Pin
Shoaib Patel23-Mar-06 2:27
Shoaib Patel23-Mar-06 2:27 
QuestionUrgent Please Help!!! Pin
Shoaib Patel23-Mar-06 2:01
Shoaib Patel23-Mar-06 2:01 
AnswerRe: Urgent Please Help!!! Pin
Waldermort23-Mar-06 2:18
Waldermort23-Mar-06 2:18 
GeneralRe: Urgent Please Help!!! Pin
Shoaib Patel23-Mar-06 2:33
Shoaib Patel23-Mar-06 2:33 
GeneralRe: Urgent Please Help!!! Pin
Waldermort23-Mar-06 2:50
Waldermort23-Mar-06 2:50 
Really it depends on the data you are trying to display. But lets say for now it is only lines and lines of text, and you want to break it into sections. You have to take into account 2 things, the font size and the screen resolution. A font of size 12 will appear a lot smaller on a 1024*768 resolution than it would on a 800*600.

So to calculate this you need to use the GetDeviceCaps() function to find out information about the screen. And create a suitable font by passing it the value of the this function. Try searching for some printing tutorials, they will help you understand this. Here is a good one[^]

Another method is to draw the text. Often with Tip of the Day, the text is drawn onto a yellow background. So you could create a bitmap, and draw text onto it using DrawTextEx(), then resize this bitmap according to your display needs. The only drawback here is that if you create a small bitmap, the text may become distorted when resizing. My first method is the best.

-- modified at 8:50 Thursday 23rd March, 2006
Corrected the function name.
GeneralRe: Urgent Please Help!!! Pin
Shoaib Patel23-Mar-06 23:40
Shoaib Patel23-Mar-06 23:40 
Questionconversion from Double to unsigned int Pin
ariesaloksingh23-Mar-06 1:43
ariesaloksingh23-Mar-06 1:43 
AnswerRe: conversion from Double to unsigned int Pin
Ștefan-Mihai MOGA23-Mar-06 2:18
professionalȘtefan-Mihai MOGA23-Mar-06 2:18 
AnswerRe: conversion from Double to unsigned int Pin
toxcct23-Mar-06 2:19
toxcct23-Mar-06 2:19 
AnswerRe: conversion from Double to unsigned int Pin
Cedric Moonen23-Mar-06 2:31
Cedric Moonen23-Mar-06 2:31 
QuestionFlush TCP socket Pin
Jiri10023-Mar-06 1:35
Jiri10023-Mar-06 1:35 
AnswerRe: Flush TCP socket Pin
Moak19-Apr-06 7:26
Moak19-Apr-06 7:26 
Questiondisplay data from a db in VC++6 Pin
viperlogic23-Mar-06 1:35
viperlogic23-Mar-06 1:35 
AnswerRe: display data from a db in VC++6 Pin
Waldermort23-Mar-06 2:22
Waldermort23-Mar-06 2:22 
GeneralRe: display data from a db in VC++6 Pin
viperlogic23-Mar-06 2:40
viperlogic23-Mar-06 2:40 
AnswerRe: display data from a db in VC++6 Pin
Ștefan-Mihai MOGA23-Mar-06 2:22
professionalȘtefan-Mihai MOGA23-Mar-06 2:22 
QuestionWhich IDE to use? Pin
Mridang Agarwalla23-Mar-06 0:46
Mridang Agarwalla23-Mar-06 0:46 
AnswerRe: Which IDE to use? Pin
_AnsHUMAN_ 23-Mar-06 0:51
_AnsHUMAN_ 23-Mar-06 0:51 
AnswerRe: Which IDE to use? Pin
toxcct23-Mar-06 2:29
toxcct23-Mar-06 2:29 
Questiongetting started vith VC++ Pin
Mridang Agarwalla23-Mar-06 0:42
Mridang Agarwalla23-Mar-06 0:42 
AnswerRe: getting started vith VC++ Pin
_AnsHUMAN_ 23-Mar-06 0:47
_AnsHUMAN_ 23-Mar-06 0:47 
AnswerRe: getting started vith VC++ Pin
toxcct23-Mar-06 2:13
toxcct23-Mar-06 2:13 

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.