AccusoftNotateXpress13 ActiveX DLL > NotateXpress Object : NoteIcon Property |
Visual Basic |
---|
Public Property NoteIcon As Long |
This enables the application to override the default icon NotateXpress uses to display the NoteTool.
Make sure that the icon does not go out of scope, as the application controls ownership of the icon.
This property should be set once as its associated with the NotateXpress control.
'YouwillneedtoprototypetheLoadImagecall PrivateConstIMAGE_ICON=1 PrivateConstLR_LOADFROMFILE=&H10 PrivateDeclareFunctionLoadImageLib"user32"Alias"LoadImageA"(ByValhInstAsLong,ByVallpszAsString,ByValun1AsLong,ByValn1AsLong,ByValn2AsLong,ByValun2AsLong)AsLong PrivateSubSetNoteIcon_Click() NotateXpress1.NoteIcon=LoadImage(App.hInstance,"c:\\images\\newnoteicon.ico",IMAGE_ICON,0,0,LR_LOADFROMFILE) EndSub