zorphnog Posted May 1, 2009 Share Posted May 1, 2009 I understand what you're saying, but given my testing and the fact that it doesn't seem to make a difference, do I really need the BitAND/BitSHIFT?No, you don't have to have it. What I posted was only an example. You are, of course, free to use whatever works best for you. I only included the bit shifting because I usually want to do specific actions for different controls. The $iIDFrom variable will contain the ctrl handle (without having to call GUICtrlGetHandle i.e. you could do If $iIDFrom = $inTest instead of If $hWnd = GUICtrlGetHandle($inTest)). The $iCode variable will contain the actual notification code. For an edit control it can be: EN_ALIGN_LTR_EC, EN_ALIGN_RTL_EC, EN_CHANGE, EN_ERRSPACE, EN_HSCROLL, EN_KILLFOCUS, EN_MAXTEXT, EN_SETFOCUS, EN_UPDATE, EN_VSCROLL, or WM_CTLCOLOREDIT. From everything you posted so far, you don't really need to go that in depth. I just like to post the proper way to do message processing when I make examples. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now