You have to create a rc or res file and add it to the application with
{$R resfile.res or resfile.rc}
Look at lazarus itself for an example, if i remember correctly Lazarus
icons were not real windows icons just bitmaps that read ico format
with bitmap handle and was extremely tricky to get the correct HICON
handle, using res/rc files does the trick :) then you can load using
winapi functions or let windows assign the default icon.

Razvan

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to