Deprecated: Array and string offset access syntax with curly braces is deprecated in /homepages/21/d38531796/htdocs/jose/smfforum/Sources/Subs.php on line 3825
GetMessage

Author Topic: GetMessage  (Read 3160 times)

0 Members and 1 Guest are viewing this topic.

Offline James C. Fuller

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 597
  • User-Rate: +11/-8
GetMessage
« on: October 29, 2009, 01:38:43 PM »
I did a quick search here and on the PowerBASIC board and found most source code does not check for an error condition when calling GetMessage.

http://msdn.microsoft.com/en-us/library/ms644936%28VS.85%29.aspx

Any particular reason for the omission?

James

Offline José Roca

  • Administrator
  • Hero Member
  • *****
  • Posts: 2487
  • User-Rate: +204/-0
Re: GetMessage
« Reply #1 on: October 29, 2009, 04:25:57 PM »
 
Nothing, excepting that it is seldom needed. With PB, returning -1 should only happen if the hWnd parameter is invalid, but you should have stopped the program before if you check the result of CreateWindowEx.