Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Cambalinho

Page 1 of 31 1 2 3 4

Search: Search took 0.04 seconds.

  1. [win32] - why the HBITMAP isn't showed transparent?

    i did these test with gif files. when i add the HBITMAP to menu item, the HBITMAP isn't showed transparent.. why?
    (with another files, works fine)
  2. Re: [win32 and GUID/GUID+] - how avoid memory leaks?

    i did more tests, with diferent images, and no more more leaks.
    thanks for all
  3. Re: [win32 and GUID/GUID+] - how avoid memory leaks?

    ok... you have right. now i don't need delete the graphic, because i don't use the new keyword. but why i can't delete the objetc btBitmap?(i lose the image)
  4. Re: [win32 and GUID/GUID+] - how avoid memory leaks?

    everytime, before i change the btBitmap,after the constructos, i delete the HBITMAP objects:

    //on FileName property
    //......
    Set(string filename)
    {
    delete graphic;
    ...
  5. Re: [win32 and GUID/GUID+] - how avoid memory leaks?

    i understand what you mean, but see the destructor with comments:

    ~image()
    {
    delete btBitmap;//don't give me problems..
    delete graphic; //memory leak, when i excute the...
  6. [RESOLVED] [win32 and GUID/GUID+] - how avoid memory leaks?

    i understand that everytime, that i create an object, i must destroy it:
    HCURSOR with LoadImage() - DestroyCursor()
    until here fine.
    i'm doing an image class, but i have some memory leaks and i...
  7. Re: {win32] - how make the context menu corresponding to messages?

    maybe, on that i can find the solution ;)
  8. Re: [RESOLVED] {win32] - how make the context menu corresponding to messages?

    i'm realy sorry, but i can't rate you :(
  9. Re: {win32] - how make the context menu corresponding to messages?

    and the other error was fixed too ;)
    thanks for all
  10. Re: {win32] - how make the context menu corresponding to messages?

    i have another diferent error too.. but you have 100% right. thanks for all
    now works fine
  11. Re: {win32] - how make the context menu corresponding to messages?

    when i create the menu items:

    MENUINFO mnInfo;
    mnInfo.cbSize=sizeof(MENUINFO);
    mnInfo.fMask=MIM_STYLE;
    if(systmenu==false)
    ...
  12. Re: {win32] - how make the context menu corresponding to messages?

    anotherthing form msdn: http://msdn.microsoft.com/en-us/library/windows/desktop/ms647591%28v=vs.85%29.aspx

    "
    Menus If an application enables a menu separator, the system sends a WM_COMMAND...
  13. Re: {win32] - how make the context menu corresponding to messages?

    tested: the WM_COMMAND is executed. why if the menu item style is notification?
  14. Re: {win32] - how make the context menu corresponding to messages?

    i tested now, the WM_MENUCOMMAND, on menu context, isn't executed
  15. Re: {win32] - how make the context menu corresponding to messages?

    if i click on menu item, on menu bar, the Click lambda is executed, the problem is only on menu context
  16. Re: {win32] - how make the context menu corresponding to messages?

    sorry about that:

    case WM_INITMENUPOPUP:
    {
    menuhandle=(HMENU)wParam;
    return DefWindowProc(HandleWindow, msg, wParam, lParam);
    ...
  17. [RESOLVED] {win32] - how make the context menu corresponding to messages?

    i have these code for show the context menu:

    POINT pCursor;
    GetCursorPos(&pCursor);
    HMENU test=GetSubMenu(GetMenu(HandleWindow),0);
    ...
  18. Re: [C\C++ 11 - win32] - how get the mouse enter and mouse leave with menus?

    i did in diferent way and works ;)
    i test if the menu item is invalid(mouse not above it):

    GetMenuState((HMENU)lParam,LOWORD(wParam),MF_BYCOMMAND)==0xFFFFFFFF
    and, in same time, i test if...
  19. Re: [C\C++ 11 - win32] - how get the mouse enter and mouse leave with menus?

    resolved ;)

    case WM_MENUSELECT:
    {
    static int Last_Menu_ID = -1;
    if(((HIWORD(wParam) & MF_HILITE) || (HIWORD(wParam) & MF_MOUSESELECT)) &&...
  20. Re: [C\C++ 11 - win32] - how get the mouse enter and mouse leave with menus?

    forgeted that... sorry
    but like menu system click, i will resolve the problem hehehe
    i will never give up ;)
  21. Re: [C\C++ 11 - win32] - how get the mouse enter and mouse leave with menus?

    i used the GetLastError() and no error message(0). if i delete these entire 'if':

    if(Last_Menu_ID!=-1 && Last_Menu_ID != LOWORD(wParam))
    the mouse enter works fine. these makes me confused :(...
  22. [RESOLVED] [C\C++ 11 - win32] - how get the mouse enter and mouse leave with menus?

    i have 1 code for do the menu item mouse leave and mouse enter:

    case WM_MENUSELECT:
    {
    static int Last_Menu_ID = -1;
    if(((HIWORD(wParam) &...
  23. Re: [C\C++ 11 - win32] - how getting the menu handle and menu item position?

    finally i fix that:

    case WM_SYSCOMMAND:
    {
    if (menuhandle!=NULL && GetMenuState(menuhandle,wParam,MF_BYCOMMAND)!=-1 )
    {
    ...
  24. Re: [C\C++ 11 - win32] - how getting the menu handle and menu item position?

    i magine that i click on system control menu(or even on menu bar) and close it without click on an menu item. these action can afect the program and give a memory error :(
  25. Re: [C\C++ 11 - win32] - how getting the menu handle and menu item position?

    - the WM_INITMENUPOPUP message is when i open the menu been popup or not and the wParam give me the menu handle of the popup.

    - the M_MENUSELECT and WM_SYSCOMMAND are confuse me from MSDN...
Results 1 to 25 of 771
Page 1 of 31 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center