View Issue Details

IDProjectCategoryView StatusLast Update
0036479LazarusLCLpublic2020-02-17 20:50
ReporterMichael Assigned ToJuha Manninen  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionno change required 
Product Version2.0.6 
Summary0036479: Constant WM_USER not defined lcl/nonwin32/messages.pp
DescriptionFor Windows, the constant WM_USER defines the offset from where user defined message codes can be used.
This constant is missing in nonwin32 LCL file.
TagsNo tags attached.
Fixed in Revision
LazTarget-
Widgetset
Attached Files

Activities

Michael

2019-12-26 13:03

reporter  

laz-lcl-messages.patch (364 bytes)   
Index: lcl/nonwin32/messages.pp
===================================================================
--- lcl/nonwin32/messages.pp	(revision 62445)
+++ lcl/nonwin32/messages.pp	(working copy)
@@ -67,6 +67,7 @@
   WM_NOTIFY           = LM_NOTIFY;
   WM_CREATE           = LM_CREATE;
   WM_ACTIVATE         = LM_ACTIVATE;
+  WM_USER             = 1024;
 
 type
 
laz-lcl-messages.patch (364 bytes)   

Juha Manninen

2020-02-17 20:50

developer   ~0121150

The patch is rejected.
WM_USER is already defined in LMessages. See:

  LM_USER           = $400; // standard WM_USER value
  WM_USER           = LM_USER;

Just use LMessages and you are good.

Issue History

Date Modified Username Field Change
2019-12-26 13:03 Michael New Issue
2019-12-26 13:03 Michael File Added: laz-lcl-messages.patch
2020-02-17 20:50 Juha Manninen Assigned To => Juha Manninen
2020-02-17 20:50 Juha Manninen Status new => resolved
2020-02-17 20:50 Juha Manninen Resolution open => no change required
2020-02-17 20:50 Juha Manninen LazTarget => -
2020-02-17 20:50 Juha Manninen Note Added: 0121150