Hi all, I have this code in module A 
    
    
    # Module A
    let wmu_DrawControl*  : UINT = WM_USER + 6
    
    
    Run

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
    
    
    Run

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."
    
    
    Run

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. 

Reply via email to