BigFiles Plugin
-
Hello everyone!
I have recently started writing a plugin with the intent of providing a preview of large files (>4 GB in 64 bit) without opening the whole file. This method is fast and allows for paging back and forward within the file. My source code and compiled DLL is at https://github.com/superolmo/BigFiles.
I am not sure what I am doing wrong with adding icons in the toolbar and I would need some quick hint if anyone is available.Thank you,
Claudio
-
@Claudio-Olmi said:
back and forward
i have vs 2010 installed in win 7 x86
you should call @chcg @donho itself & share a screen shoot of “back and forward” icon -
Hi @Claudio-Olmi ,
Don’t load icons (no need to
left_icon->hToolbarIcon = (HICON)::LoadIcon((HINSTANCE)global_npp_handle, MAKEINTRESOURCE(IDI_ICON2));) - just inithToolbarBmpmember of eachtoolbarIconsstruct and leavehToolbarIcon.BR
-
As @pnedev already said, the
hToolbarIconmember of thetoolbarIconsstruct seems not to be used. You should use thehToolbarBmpmember instead.The provided bitmap resource has to be in an 8 bits per pixel (256 colors) palletized
BMPformat. All pixels with the color of the pixel in the upper left corner will be transparent. To generate a*.bmpfile with the correct format you can open e.g. an*.icofile with MS Paint and save it as256-color-bitmapfile. -
@pnedev and @dinkumoil
Thank you both for your help, it is now working beautifully as expected. I have removed the unnecessary hToolBarIcon and converted the icons to BMP format.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login