Fix a typo in wxWebRequest use example
s/IsOK/IsOk/ and also make the example slightly more verbose.
This commit is contained in:
@@ -45,8 +45,11 @@
|
|||||||
case wxWebRequest::State_Completed:
|
case wxWebRequest::State_Completed:
|
||||||
{
|
{
|
||||||
wxImage logoImage(*evt.GetResponse().GetStream());
|
wxImage logoImage(*evt.GetResponse().GetStream());
|
||||||
if (logoImage.IsOK())
|
if (logoImage.IsOk())
|
||||||
wxLogInfo("Image loaded");
|
wxLogInfo("Image successfully downloaded");
|
||||||
|
|
||||||
|
... do something with it ...
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// Request failed
|
// Request failed
|
||||||
|
Reference in New Issue
Block a user