Jump to content

Message loop in Microsoft Windows: Revision history


For any version listed below, click on its date to view it. For more help, see Help:Page history and Help:Edit summary. (cur) = difference from current version, (prev) = difference from preceding version, m = minor edit, → = section edit, ← = automatic edit summary

(newest | oldest) View (newer 50 | ) (20 | 50 | 100 | 250 | 500)

3 April 2024

23 November 2023

18 July 2023

  • curprev 22:0522:05, 18 July 2023Premitive talk contribs 5,003 bytes −6 Shorter comments. When WM_QUIT is received the message loop should terminate (and perhaps the specific GUI thread) but not necessarily the entire program. undo
  • curprev 21:5221:52, 18 July 2023Premitive talk contribs 5,009 bytes +17 Correction. undo
  • curprev 21:4921:49, 18 July 2023Premitive talk contribs 4,992 bytes +3 Adjusted the code. According to the documentation of GetMessage: "If the function retrieves a message other than WM_QUIT, the return value is nonzero. If the function retrieves the WM_QUIT message, the return value is zero. If there is an error, the return value is -1." So GetMessage is allowed to return a negative value (other than -1) when it retrieves a non-WM_QUIT message. (Currently GetMessage doesn't actually do that, however, it is still better to follow the documentation) undo

6 May 2021

5 December 2020

29 November 2020

17 August 2020

11 May 2020

27 January 2020

19 May 2019

21 February 2019

3 March 2017

24 October 2016

  • curprev 20:2220:22, 24 October 2016173.161.94.19 talk 4,681 bytes −1 for(;;) produces basically the same output as while(1). For a beginning programmer though while(1) translates into "while true", and for(;;) translates to "for nothing do nothing until nothing" which is complicated and leads to confusion. undo Tag: Visual edit

27 May 2016

6 May 2016

27 January 2016

4 April 2015

31 January 2014

29 January 2014

22 December 2013

20 November 2013

22 April 2013

27 January 2013

18 September 2012

10 January 2012

6 April 2011

15 March 2011

20 February 2011

15 November 2010

8 November 2010

7 November 2010

9 August 2010

22 April 2010

30 December 2009

1 November 2009

14 June 2009

2 October 2008

24 June 2008

(newest | oldest) View (newer 50 | ) (20 | 50 | 100 | 250 | 500)