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 init hToolbarBmp member of each toolbarIcons struct and leave hToolbarIcon.

    BR



  • @Claudio-Olmi

    As @pnedev already said, the hToolbarIcon member of the toolbarIcons struct seems not to be used. You should use the hToolbarBmp member instead.

    The provided bitmap resource has to be in an 8 bits per pixel (256 colors) palletized BMP format. All pixels with the color of the pixel in the upper left corner will be transparent. To generate a *.bmp file with the correct format you can open e.g. an *.ico file with MS Paint and save it as 256-color-bitmap file.



  • @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.


Log in to reply