LRESULT CFulEditCtrl::onLButtonDown(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM lParam, BOOL& bHandled) { if(!isSet(URL_SINGLE_CLICK)){ bHandled = FALSE; return 1; } POINT pt = { GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam) }; bHandled = HandleUrl(pt); return bHandled = TRUE ? 0: 1; }
void *PullUrl(void *arg) { if (icaoCode != NULL) { char url[255]; sprintf(url, "%s%s%s", URL_BASE, icaoCode, URL_EXTENSION); XPLMDebugString(url); getData = HandleUrl(url); newData = 1; } return NULL; }
LRESULT CFulEditCtrl::onDoubleClick(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM lParam, BOOL& bHandled) { //check that single click is not set to avoid opening the url twice/three times on accidental //double clicks. if(!isSet(URL_DOUBLE_CLICK) || isSet(URL_SINGLE_CLICK)){ bHandled = FALSE; return 1; } POINT pt = { GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam) }; bHandled = HandleUrl(pt); return bHandled = TRUE ? 0: 1; }