title: Why doesn't wxPerl draw my wxStaticBitmap when I run the program from a Windows shortcut?
body: <p>I've made a wxPerl application which presents just a simple frame which only contains a wxMenuBar, wxPanel, wxTextCtrl and a wxStaticBitmap. The development and deployment platform is Windows XP and beyond.</p>
  
  <p>The image is added to the form like this:</p>
  
  <pre><code>my $logoData = Wx::Bitmap-&gt;new(App::Resource::Images::getLogoPath(), wxBITMAP_TYPE_BMP);
  my $logo = Wx::StaticBitmap-&gt;new($self, -1, $logoData);
  </code></pre>
  
  <p>I've had no problems displaying the image. I've made an installer with Inno Setup that adds a icon to the users' desktop. If the application gets started using that shortcut the window doesn't draw my wxStaticBitmap. Only when the application loses focus and some other window is being moved over it, only then will my wxStaticBitmap be drawn.</p>
  
  <p>When starting the application from the start menu, quick start, or directly after compiling it with wxpar, or just with the perl interperter displays my wxStaticBitmap fine.</p>
  
  <p>The only thing I've found is calling <code>Refresh()</code> and <code>Update()</code> on my wxFrame. After creating this wxFrame I call <code>Show(1)</code> and right after that <code>Refresh()</code> and <code>Update()</code>. But so far have had no luck with it.</p>