Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

a puzzle problem about CIPAddressCtrl

76 views
Skip to first unread message

Micky Cheng

unread,
Nov 22, 2002, 2:15:27 AM11/22/02
to
Dear all,
I met a puzzle problem. I used a IP Address Control in my project. My
project is a MFC regular dll,
it works well in win2k. But in NT 4, I found each edit in the IP address
control is not enough broad for fill in 3 digits,I only can input 2 digits.
But in win2k, it is well, and if I used the same IP address control in a MFC
exe project in NT 4,it works well too.
Is there any releationship with IP address Control , regular dll and NT
4 ?
Thanks in advance,
Micky


Ajay Kalra

unread,
Nov 22, 2002, 2:37:49 AM11/22/02
to
Just make sure the controls dll(Cmnctl32.dll??) is same on all machines.

--
Ajay Kalra [MVP - VC++]
ajay...@yahoo.com


"Micky Cheng" <Micky...@Wistron.com.cn> wrote in message
news:#FpmSYfkCHA.1616@tkmsftngp10...

Micky Cheng

unread,
Nov 22, 2002, 3:00:20 AM11/22/02
to
One machine is NT 4, one is win2k. Their version of conctl32.dll
are not same. I think it is not the cause,I used the same IP Address Control
in a dll and a exe project in the NT 4 machine,but in the dll project,it
cannot be filled in 3 digits(only if I enlength it), but in the exe project
it can. Their width are same, the difference is only one is in dll,one is in
exe,and the problem occurs onoly in NT 4.
Can you help me?
Thanks a lot
"Ajay Kalra" <ajay...@yahoo.com> wrote in message
news:#5HAxlfkCHA.1552@tkmsftngp08...

Ajay Kalra

unread,
Nov 22, 2002, 3:15:32 AM11/22/02
to
If you are using a regular dll, you should use use the AFX_MANAGE_STATE
macro. I dont think this is the problem though. Worth a shot.

--
Ajay Kalra [MVP - VC++]
ajay...@yahoo.com


"Micky Cheng" <Micky...@Wistron.com.cn> wrote in message

news:eT#wXxfkCHA.1760@tkmsftngp12...

Micky Cheng

unread,
Nov 22, 2002, 3:37:09 AM11/22/02
to
I used AFX_MANAGE_STATE to change the module state.

"Ajay Kalra" <ajay...@yahoo.com> wrote in message

news:e6TD26fkCHA.2668@tkmsftngp11...

Joseph M. Newcomer

unread,
Nov 22, 2002, 4:05:18 AM11/22/02
to
What about its size? Win2K uses smaller fonts, so you may have to make the control wider
for NT 4.
joe

Joseph M. Newcomer [MVP]
email: newc...@flounder.com
Web: http://www3.pgh.net/~newcomer
MVP Tips: http://www3.pgh.net/~newcomer/mvp_tips.htm

Micky Cheng

unread,
Nov 25, 2002, 12:29:26 AM11/25/02
to
The IP address control is 86 * 11, I think it is wide enough.But it seems I
should enwide it more to
work properly.
"Joseph M. Newcomer" <newc...@flounder.com> wrote in message
news:ppsrtukhqvk4gjqh1...@4ax.com...

Joseph M. Newcomer

unread,
Nov 25, 2002, 11:30:25 PM11/25/02
to
86x11 has no meaning. That's in Dialog Box Units, which correlate to the System Font, but
the dialogs in Win2K and NT4 use different fonts than the system font, and which are
difference from each other. So the DBU settings are pretty meaningless most times,
representing only an approximation.
joe

Micky Cheng

unread,
Nov 27, 2002, 9:48:05 PM11/27/02
to
But in another App in NT 4, even 75 * 11 is OK.
The problem occurs only in my .dll project.

"Joseph M. Newcomer" <newc...@flounder.com> wrote in message
news:o4u5uu8ml6eg6l0ql...@4ax.com...

Joseph M. Newcomer

unread,
Dec 1, 2002, 1:03:31 AM12/1/02
to
75x11 is equally meaningless. This is because those numbers represent Dialog Box Units,
but the fonts actually used for the dialogs are completely different from the system font,
so what works on one machine won't necessarily work on another. E.g., MS Sans Serif on NT4
and Tahoma on XP/2000. I consider the numbers essentially nonsensical except for when I'm
trying to resize, align, or distribute controls in some fashion not readily handled by the
built-in editor functions. They are whatever they are, and if they are too small, I make
the controls bigger. I never really pay attention to what the numbers are because they are
in a coordinate space unrelated to a real dialog, which maps them according to the
currently-in-force transformation, whatever it is today.
joe
0 new messages