SendMessage Returns a Value?
- Posted by euphoric <euphoric at cklester.com> Mar 23, 2004
- 440 views
I've looked up SendMessage info at msdn, but can't find return values for success/fail. Does anybody know how to determine if the message was sent or received properly? Here's the snippet of code I'm using... -- call AddFontResource if AddFontResource != -1 then junk = allocate_string( "free000.ttf" ) if xSendMessage!= -1 then fonter = c_func( AddFontResource, { junk } ) if fonter != 0 then junk = c_func(xSendMessage,{HWND_BROADCAST, WM_FONTCHANGE, 0, 0}) -- RIGHT HERE... HOW DO I DETERMINE IF xSendMessage completed properly? didAddFontResource = (1=1) else errMsg = "AddFontResource failed." end if else errMsg = "Could not access SendMessage." end if free(junk) else errMsg = "Could not access AddFontResource." end if