Some lines of program written in Visual C++ for covering the active cell of a MSFlexGrid with a CEdit run properly in Windows '98, once solved the problem of translating twips into pixels.
But when the same program is tried in Windows NT or XP, the CEdit is misplaced, a few pixels over and at the left of where it should be.
Incidentally, in these OS the CEdit doesn't accept the instructions to change its font.
My questions are:
1) how can the program be informed of which is the environment Operating System?
2) how do Windows NT or XP map points and sizes on the screen?
3) for changing the font in NT, do I have to use an instruction different from SetFont?
Many thanks for any help.
But when the same program is tried in Windows NT or XP, the CEdit is misplaced, a few pixels over and at the left of where it should be.
Incidentally, in these OS the CEdit doesn't accept the instructions to change its font.
My questions are:
1) how can the program be informed of which is the environment Operating System?
2) how do Windows NT or XP map points and sizes on the screen?
3) for changing the font in NT, do I have to use an instruction different from SetFont?
Many thanks for any help.