(i'm using a console for test them... i don't know if it's a problem or not)
for now i'm trying creating the label:

label.h:

Code:
#include <windows.h>
#include <iostream>

class label
{
private:
    LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
    switch(msg)
    {
        case WM_CLOSE:
            DestroyWindow(hwnd);
        break;
        case WM_DESTROY:
            PostQuitMessage(0);
        break;
        default:
            return DefWindowProc(hwnd, msg, wParam, lParam);
    }
    return 0;
}

public:

    label(HWND value)
    {

    HWND hwnd;
    MSG Msg;

    hwnd = CreateWindowEx(
    WS_EX_CLIENTEDGE,
    "STATIC",
    "hello world",
    SS_LEFT|WS_CHILD|WS_VISIBLE,
    0, 0, 100, 100,
    value,
    NULL,
    GetModuleHandle(NULL),
     NULL);
    if (hwnd==0) cout << "erro";
     ShowWindow(hwnd,SW_SHOW);
    }
};
main.cpp:
Code:
#include "label.h"


int main()
{
    label b(GetForegroundWindow());
    return 0;
}
the label isn't created... and i don't know why
i need more information please