Hi all, I have this code in module A
# Module A
let wmu_DrawControl* : UINT = WM_USER + 6
And i have this code in Module B
# Module B
# this is WndProc of parent Gui
case message
of WM_DRAWITEM :
# sending child a message
sendMsg(ctlHwnd, wmu_DrawControl, 0, 0)
return true
Now, this is the code in Module C. And here is the problem
# Module C
# Inside a subclassed WndProc
case message
of wmu_DrawControl : # This line is causing the error !
echo "Prepare for drawing the button."
And the compiler says that Error: cannot evaluate at compile time: wmu_DrawControl in Module c. I don't know why. Please help. I've tried with straight declaration like "let wmu_DrawControl = 1030" but not worked.
of wmu_DrawControl : # This line is causing the error !
The value after of keyword in case statement have to be a constant, but you define it in module a with let, which is not a const def.