Fix a typo in wxWebRequest use example
s/IsOK/IsOk/ and also make the example slightly more verbose.
This commit is contained in:
parent
7d9b01afd9
commit
ce91a5d0ff
1 changed files with 5 additions and 2 deletions
|
|
@ -45,8 +45,11 @@
|
|||
case wxWebRequest::State_Completed:
|
||||
{
|
||||
wxImage logoImage(*evt.GetResponse().GetStream());
|
||||
if (logoImage.IsOK())
|
||||
wxLogInfo("Image loaded");
|
||||
if (logoImage.IsOk())
|
||||
wxLogInfo("Image successfully downloaded");
|
||||
|
||||
... do something with it ...
|
||||
|
||||
break;
|
||||
}
|
||||
// Request failed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue