Cmaskedtextfield And Network Ip Or Mask

Hey everybody, just wondering how to do a mask for IP adresses or netmask. For moment I didn’t do better than something like :






It works approximately… indeed, this mask constraints user to write for every part of the netmask 3 characters… thus any possibility to write something like but which looks weird and not natural… and I found no other way to do it… any idea ? :)

Or is it possible finally ?