[Win32API] Dlg Proc is not working

This is a discussion on [Win32API] Dlg Proc is not working within the Windows Programming forums, part of the Platform Specific Boards category; so I have this code [C++] #include <Windows.h> #include "resource.h" #include <commctrl.h> #include <Wi - Pastebin.com but message in Tab<number>DlgProc ...

  1. #1
    Registered User
    Join Date
    Nov 2012
    Location
    Humenne, Slovakia
    Posts
    4

    [Win32API] Dlg Proc is not working

    so I have this code


    [C++] #include <Windows.h> #include "resource.h" #include <commctrl.h> #include <Wi - Pastebin.com


    but message in Tab<number>DlgProc is not working, when I add MessageBox BEFORE switch it will spam message boxes, BUT when I'll add MessageBox anyhwere inside of any callback it won't do anything...

    Tab<number>DlgProc is called in TabOne - TabFive dialogs, used in different tabs


    resource


    Code:
    // Generated by ResEdit 1.5.11
    // Copyright (C) 2006-2012
    // http://www.resedit.net
    
    
    #include <windows.h>
    #include <commctrl.h>
    #include <richedit.h>
    #include "resource.h"
    
    
    
    
    
    
    
    
    //
    // Dialog resources
    //
    LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
    IDD_MAIN DIALOG 0, 0, 407, 246
    STYLE DS_3DLOOK | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_CAPTION | WS_VISIBLE | WS_CLIPSIBLINGS | WS_GROUP | WS_TABSTOP | WS_POPUP | WS_SYSMENU
    CAPTION "Hero Creator v0.1"
    CLASS "HON HC"
    FONT 8, "Ms Shell Dlg"
    {
        CONTROL         "", IDC_TABCONTROL, WC_TABCONTROL, 0, 23, 15, 50, 30
    }
    
    
    
    
    
    
    LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
    TAB_FIVE DIALOGEX 1, 13, 296, 220
    STYLE DS_SETFONT | WS_VISIBLE | WS_CHILDWINDOW
    FONT 8, "Ms Shell Dlg", 0, 0, 1
    {
    }
    
    
    
    
    
    
    LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
    TAB_FOUR DIALOGEX 1, 13, 296, 220
    STYLE DS_SETFONT | WS_VISIBLE | WS_CHILDWINDOW
    FONT 8, "Ms Shell Dlg", 0, 0, 1
    {
    }
    
    
    
    
    
    
    LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
    TAB_ONE DIALOGEX 1, 13, 296, 220
    STYLE DS_SETFONT | WS_VISIBLE | WS_CHILDWINDOW
    FONT 8, "Ms Shell Dlg", 0, 0, 1
    {
        EDITTEXT        IDC_HERONAME, 11, 31, 64, 14, ES_AUTOHSCROLL
        LTEXT           "Hero Name", IDC_STATIC, 11, 22, 37, 8, SS_LEFT
        COMBOBOX        IDC_FACTION, 11, 55, 64, 30, CBS_DROPDOWN | CBS_HASSTRINGS
        LTEXT           "Faction", IDC_STATIC, 11, 46, 24, 8, SS_LEFT
        PUSHBUTTON      "Stats", IDC_BSTATS, 18, 70, 50, 14
        EDITTEXT        IDC_DIFF, 85, 55, 64, 14, ES_AUTOHSCROLL | ES_NUMBER
        LTEXT           "Category", IDC_STATIC, 85, 22, 29, 8, SS_LEFT
        LTEXT           "Difficulty", IDC_STATIC, 85, 46, 28, 8, SS_LEFT
        COMBOBOX        IDC_CAT, 85, 31, 64, 30, CBS_DROPDOWN | CBS_HASSTRINGS
        PUSHBUTTON      "Sounds", IDC_BSOUNDS, 18, 85, 50, 14
        PUSHBUTTON      "Effects", IDC_BEFFECTS, 92, 70, 50, 14
        PUSHBUTTON      "Models", IDC_BMODELS, 92, 85, 50, 14
        LISTBOX         IDC_LRITEMS, 11, 133, 138, 57, WS_TABSTOP | WS_VSCROLL | LBS_NOINTEGRALHEIGHT | LBS_SORT | LBS_NOTIFY
        LTEXT           "Recommended Items", IDC_STATIC, 11, 124, 68, 8, SS_LEFT
        PUSHBUTTON      "+", IDC_BRIA, 128, 191, 21, 14
        PUSHBUTTON      "-", IDC_BRIR, 106, 191, 21, 14
    }
    
    
    
    
    
    
    LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
    TAB_THREE DIALOGEX 1, 13, 296, 220
    STYLE DS_SETFONT | WS_VISIBLE | WS_CHILDWINDOW
    FONT 8, "Ms Shell Dlg", 0, 0, 1
    {
    }
    
    
    
    
    
    
    LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
    TAB_TWO DIALOGEX 1, 13, 296, 220
    STYLE DS_SETFONT | WS_VISIBLE | WS_CHILDWINDOW
    FONT 8, "Ms Shell Dlg", 0, 0, 1
    {
    }
    
    
    
    
    
    
    //
    // Icon resources
    //
    LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
    IDI_ICON1          ICON           ".\\hc_logo.ico"

    Code:
    #ifndef IDC_STATIC
    #define IDC_STATIC (-1)
    #endif
    
    
    #define IDD_MAIN                                101
    #define TAB_ONE                                 102
    #define TAB_TWO                                 103
    #define TAB_THREE                               104
    #define TAB_FOUR                                105
    #define TAB_FIVE                                106
    #define IDI_ICON1                               113
    #define IDC_TABCONTROL                          1001
    #define IDC_HERONAME                            1002
    #define IDC_FACTION                             1004
    #define IDC_CAT                                 1010
    #define IDC_DIFF                                1011
    #define IDC_BSOUNDS                             1015
    #define IDC_BSTATS                              1016
    #define IDC_BEFFECTS                            1017
    #define IDC_BMODELS                             1018
    #define IDC_LRITEMS                             1020
    #define IDC_BRIR                                1023
    #define IDC_BRIA                                1024

  2. #2
    Registered User
    Join Date
    Nov 2012
    Location
    Humenne, Slovakia
    Posts
    4
    fixed

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Win32APi Tutorial?
    By Coder87C in forum Windows Programming
    Replies: 4
    Last Post: 06-02-2005, 12:56 PM
  2. Learning win32API
    By JoshR in forum Windows Programming
    Replies: 8
    Last Post: 05-30-2005, 12:15 PM
  3. VC++.NET & Win32API & OpenGL
    By glUser3f in forum Windows Programming
    Replies: 10
    Last Post: 08-19-2003, 07:50 PM
  4. Hmmm ...Win32API, MFC, .NET..which one?
    By Jubba in forum Windows Programming
    Replies: 2
    Last Post: 08-14-2003, 06:21 PM
  5. Win32Api Vs. MFC
    By Timer in forum Windows Programming
    Replies: 5
    Last Post: 07-19-2002, 11:21 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21