Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
G

Great ATuin

@Great ATuin
About
Posts
21
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • No Balloon Tip
    G Great ATuin

    yesss. that's it. i forgot the #define. ok man thank you! i appreciate your efforts!

    C / C++ / MFC c++ question

  • No Balloon Tip
    G Great ATuin

    ok here's my new code: ZeroMemory(&ndata, sizeof(NOTIFYICONDATA)); ndata.cbSize = sizeof(NOTIFYICONDATA); ndata.hWnd = m_hWnd; ndata.uFlags = NIF_ICON | NIF_MESSAGE; ndata.uID = IDI_DISABLED; ndata.uCallbackMessage = WM_POPUP; ndata.hIcon = (HICON) LoadImage(AfxGetApp()->m_hInstance, MAKEINTRESOURCE(IDI_DISABLED), IMAGE_ICON, 16, 16, LR_DEFAULTCOLOR); Shell_NotifyIcon(NIM_ADD, &ndata); ndata.uVersion = NOTIFYICON_VERSION; Shell_NotifyIcon(NIM_SETVERSION, &ndata); ndata.uTimeout = 10000; ndata.uFlags |= NIF_INFO; _tcscpy(ndata.szInfoTitle,_T("Test")); _tcscpy(ndata.szInfo, _T("Test")); Shell_NotifyIcon(NIM_MODIFY, &ndata); but still no balloon :wtf:

    C / C++ / MFC c++ question

  • No Balloon Tip
    G Great ATuin

    right after ndata.cbSize = sizeof(NOTIFYICONDATA);

    C / C++ / MFC c++ question

  • No Balloon Tip
    G Great ATuin

    ... no effect. setting the version didn't fix it :(

    C / C++ / MFC c++ question

  • No Balloon Tip
    G Great ATuin

    hi, I want to display a little balloon tip on my tray icon but the balloon just won't appear, although the tray icon is visible. the app is based on MFC and here's the code that doesn't work. it is located in OnInitDialog: ndata.cbSize=sizeof(NOTIFYICONDATA); ndata.hWnd = m_hWnd; ndata.uFlags = NIF_ICON | NIF_MESSAGE | NIF_INFO; ndata.uID = IDI_DISABLED; ndata.dwInfoFlags = NIIF_NONE; ndata.hIcon = (HICON) LoadImage(AfxGetApp()->m_hInstance, MAKEINTRESOURCE(IDI_DISABLED), IMAGE_ICON, 16, 16, LR_DEFAULTCOLOR); ndata.uCallbackMessage = WM_POPUP; ndata.uTimeout = 10000; wcscpy(ndata.szInfoTitle,_T("Test")); wcscpy(ndata.szInfo, _T("Test")); Shell_NotifyIcon(NIM_ADD, &ndata); ndata is of type NOTIFYICONDATA and is a member of my dialog class. any clues what could be wrong with that ? greets -- modified at 4:38 Wednesday 1st February, 2006

    C / C++ / MFC c++ question

  • Notify icon problem?
    G Great ATuin

    if you have windows xp, then yes, they have more then 16 colors. take a closer look to them - in windows 2000 they all use the same bunch of colors, namley 16. again, only tray icons are affected. icons in the taskbar, quick launch icons, icons in the upper left corner of your app or just the icons on your desktop - they all can use far more colors.

    C / C++ / MFC help csharp c++ question announcement

  • Notify icon problem?
    G Great ATuin

    did you consider that in windows 2000 and former versions, tray icons are only displayed with 16 colors ? (don't mix up with 16 bit colors - cause here you only have 4 Bit which on top of that are pretended by windows)

    C / C++ / MFC help csharp c++ question announcement

  • Notify icon problem?
    G Great ATuin

    tray icons are supposed to have a resolution of 16x16 pixels. if you're loading a bigger one windows will shrink it and you'll get some odd artifacts. so if you want it to be displayed like in your resource editor you need to make it 16x16. saludos

    C / C++ / MFC help csharp c++ question announcement

  • Wrong Colors
    G Great ATuin

    hm, although i hoped that i didn't have to redraw the icon by my self it's seems there leads no way around. 16 colors are ridiculous :mad: however, thanks anyway.

    C / C++ / MFC database graphics help question

  • Wrong Colors
    G Great ATuin

    you're right - windows converts my icon into 16 colors. but how do i can make sure to use only the standard 16 system colors ?

    C / C++ / MFC database graphics help question

  • Wrong Colors
    G Great ATuin

    hi, strange problem with my colors: i want to display a tray icon but it always appears in black & white although the image HAS color. I've tried it with a 256 color bitmap, a 256 color icon, a 24 Bit color bitmap and a 24 Bit color icon (every variant with 16x16 Pixel) each time the same effect - JUST BLACK AND WHITE. Even with different functions for loading the images hasn't changed it. (tried LoadIcon, LoadImage and CreateIconIndirect ) any ideas what this may trigger ? greets

    C / C++ / MFC database graphics help question

  • tough nut
    G Great ATuin

    yesss that's it! thanks a lot!! ... AnimateWindow was completely new to me :doh:

    C / C++ / MFC graphics tutorial question

  • tough nut
    G Great ATuin

    selecting rectangular bitmaps and AlphaBlending them is not my problem. i need to get it done with non-rectangular bitmaps.

    C / C++ / MFC graphics tutorial question

  • tough nut
    G Great ATuin

    yeah. i use it already. AlphaBlend and SetLayeredWindowAttributes are the two main functions with those i'm trying to get this done. But they don't last out.

    C / C++ / MFC graphics tutorial question

  • tough nut
    G Great ATuin

    nice idea, actually. and i've already tried it. there is just one problem. the graphic i want to show is not rectangular (neither elliptic) it's a custom hand drawn one. so if i draw my splash on the background image and make it slightly transparent the whole graphic (including the surrounding alpha color) will be visible on it. you understand ? but the alpha color should be complete invisible during the entire appearance procedure.

    C / C++ / MFC graphics tutorial question

  • tough nut
    G Great ATuin

    hi folks, ok, i hope i can describe this in a way that will be understandable :) so here's what i plan to do: i want to display a splash screen with an alpha channel. neither the bitmaps rectangle nor the surrounding color of my graphic should visible. i.e. i need to set the surrounding color to be drawn 100% transparent. not difficult so far. but here's the tough part. namely, i want the splash screen to appear like it comes from nowhere. it should start with a opacity of 0% (i.e. 100% transparence) and within a few seconds it should become more and more visible until it has a final opacity of 100%. confused ? me too ;) i'm only able to display the graphic without the surrounding stuff (alpha value) when the graphics opacity is set to 100%. but when it comes to the piont where i need to set the opacity to a lower value and still want to make the surrounding color of my graphic completely invisible i'm starting to freak out. i don't know how to achieve this. i would be very glad about some hints ... any hints :wtf: thanks in advance.

    C / C++ / MFC graphics tutorial question

  • Which way ?
    G Great ATuin

    yes thanks. now i got what i want. here's what i have done: i've used a simple MFC dialog based application. i used to start it in InitInstance with RunModalLoop() and set the visible mode of the dialog in the resource editor to false. In the CDialog derived class i've overloaded the function OnCreate and added the following Window Style: ModifyStyleEx(0, WS_EX_TOOLWINDOW ); and, well, it works: NO WINDOW. NO DIALOG. NO TASKBAR ENTRY. AND I STILL GOT MY MESSAGE MAP :cool: thanks everone. greetings

    C / C++ / MFC c++ question

  • Which way ?
    G Great ATuin

    hi, yes, i have to use MFC because there are some classes in my app which need it. creating the tray icon and the popup is no problem. i only have to bother with getting rid of unnecessary dialogs and/or windows. the result should be a MFC based application with only a tray icon and a popup menu as its GUI - neither a dialog nor a window can be visible. aren't there any sample codes out there? i can't believe that i'm the first one who's trying this. greeting

    C / C++ / MFC c++ question

  • Which way ?
    G Great ATuin

    hi folks, i want to make a MFC application which only should have a tray icon and a popup menu (accessible via the tray icon). but i don't know what kind of application i should choose. should i make a dialog based or a sdi one ? i mean i only need the message map. thanks in advance. greets

    C / C++ / MFC c++ question

  • Build Problem
    G Great ATuin

    no idea what exactly the problem was, but it seems that these 4 files haven't been modified for a little while and according to that they couldn't be generated well. if you ask me this doesn't make munch sense, but a little shift of some characters has solved the problem. what a crap!!

    C / C++ / MFC visual-studio help csharp tools question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups