SendMessage Returns a Value?

new topic     » topic index » view thread      » older message » newer message

I've looked up SendMessage info at msdn, but can't find return values 
for success/fail. Does anybody know how to determine if the message was 
sent or received properly?

Here's the snippet of code I'm using...

    -- call AddFontResource
    if AddFontResource != -1 then
        junk = allocate_string( "free000.ttf" )
        if xSendMessage!= -1 then
            fonter = c_func( AddFontResource, { junk } )
            if fonter != 0 then
                junk = c_func(xSendMessage,{HWND_BROADCAST, 
WM_FONTCHANGE, 0, 0})
-- RIGHT HERE... HOW DO I DETERMINE IF xSendMessage completed properly?
                didAddFontResource = (1=1)
            else
                errMsg = "AddFontResource failed."
            end if
        else
            errMsg = "Could not access SendMessage."
        end if
        free(junk)
    else
        errMsg = "Could not access AddFontResource."
    end if

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu