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

C / C++ / MFC

 
AnswerRe: public struct in a class Pin
toxcct18-Sep-08 5:52
toxcct18-Sep-08 5:52 
GeneralRe: public struct in a class Pin
Cengine18-Sep-08 5:58
Cengine18-Sep-08 5:58 
GeneralRe: public struct in a class Pin
toxcct18-Sep-08 6:02
toxcct18-Sep-08 6:02 
GeneralRe: public struct in a class Pin
Cengine18-Sep-08 6:06
Cengine18-Sep-08 6:06 
AnswerRe: public struct in a class Pin
Matthew Faithfull18-Sep-08 6:12
Matthew Faithfull18-Sep-08 6:12 
QuestionBitBlt does not work in print preview Pin
theCPkid18-Sep-08 5:29
theCPkid18-Sep-08 5:29 
AnswerRe: BitBlt does not work in print preview Pin
Mark Salsbery18-Sep-08 5:49
Mark Salsbery18-Sep-08 5:49 
GeneralRe: BitBlt does not work in print preview Pin
theCPkid18-Sep-08 5:54
theCPkid18-Sep-08 5:54 
QuestionRe: BitBlt does not work in print preview Pin
Mark Salsbery18-Sep-08 5:57
Mark Salsbery18-Sep-08 5:57 
AnswerRe: BitBlt does not work in print preview Pin
theCPkid18-Sep-08 6:03
theCPkid18-Sep-08 6:03 
GeneralRe: BitBlt does not work in print preview Pin
Mark Salsbery18-Sep-08 6:34
Mark Salsbery18-Sep-08 6:34 
GeneralRe: BitBlt does not work in print preview [modified] Pin
theCPkid18-Sep-08 7:01
theCPkid18-Sep-08 7:01 
GeneralRe: BitBlt does not work in print preview Pin
Mark Salsbery18-Sep-08 7:25
Mark Salsbery18-Sep-08 7:25 
GeneralRe: BitBlt does not work in print preview Pin
theCPkid18-Sep-08 22:44
theCPkid18-Sep-08 22:44 
GeneralRe: BitBlt does not work in print preview Pin
Mark Salsbery19-Sep-08 5:17
Mark Salsbery19-Sep-08 5:17 
GeneralRe: BitBlt does not work in print preview Pin
theCPkid19-Sep-08 19:49
theCPkid19-Sep-08 19:49 
AnswerRe: BitBlt does not work in print preview Pin
Roger Allen18-Sep-08 14:37
Roger Allen18-Sep-08 14:37 
GeneralRe: BitBlt does not work in print preview Pin
theCPkid18-Sep-08 22:42
theCPkid18-Sep-08 22:42 
QuestionHow can i lock the internet from a C++ program Pin
SNArruda18-Sep-08 5:04
SNArruda18-Sep-08 5:04 
AnswerRe: How can i lock the internet from a C++ program Pin
David Crow18-Sep-08 5:21
David Crow18-Sep-08 5:21 
JokeRe: How can i lock the internet from a C++ program Pin
Iain Clarke, Warrior Programmer18-Sep-08 5:22
Iain Clarke, Warrior Programmer18-Sep-08 5:22 
AnswerRe: How can i lock the internet from a C++ program Pin
Bram van Kampen18-Sep-08 14:55
Bram van Kampen18-Sep-08 14:55 
QuestionRatio result placing a square not working - when resizing window Pin
simon alec smith18-Sep-08 5:01
simon alec smith18-Sep-08 5:01 
Hi,

I am very confused to why this isn't working.

My starting window width size is 756
I got this result by declaring:

CRect Rect;
GetClientRect(&Rect);
Rect.Width();

I divide the 756 / 2 to plae the triangle in the centre of the
window. I have set up a message handler for the left and right
arrow key press, which moves the triagle by 10.

if the user resizes the the window, the window should
display in proportion, by the statement.

widthRatio = Rect.Width() / 756;
then * the x posistion by the widthRatio

I have tried declaring the variables 'float, double, and int
I can not seem to find a reason why this shouldn't work
the posistion remains the same if I expand, and snaps to the
left hand of the screen if the size has gone smaller


does anybody know whats going on

cheers Simon
QuestionRe: Ratio result placing a square not working - when resizing window Pin
David Crow18-Sep-08 5:26
David Crow18-Sep-08 5:26 
AnswerRe: Ratio result placing a square not working - when resizing window Pin
simon alec smith18-Sep-08 5:30
simon alec smith18-Sep-08 5:30 

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.