Erik Wiggins
February 21st, 2005, 06:55 PM
#define MAX_LOADSTRING 50
TCHAR szButtonCls[MAX_LOADSTRING];
LoadString(hInstance, IDC_BUTTON, szButtonCls, MAX_LOADSTRING);
hButton=CreateWindowEx(NULL,szButtonCls, "BUTTON",WS_VISIBLE|WS_CHILD|BS_PUSHLIKE|BS_OWNERDRAW,0,0,15,15,hPallete, NULL, hInst, NULL);
if (!hButton) return FALSE;
ShowWindow(hButton, SW_SHOWNORMAL);
UpdateWindow(hButton);
TCHAR szCls[MAX_LOADSTRING];
GetClassName(hButton,szCls,MAX_LOADSTRING);
If(szCls==szButtonCls)
{
//Do Something
}
for some reason the last statement If(szCls==szButtonCls)
is returning false. Any ideas on how to fix it?
TCHAR szButtonCls[MAX_LOADSTRING];
LoadString(hInstance, IDC_BUTTON, szButtonCls, MAX_LOADSTRING);
hButton=CreateWindowEx(NULL,szButtonCls, "BUTTON",WS_VISIBLE|WS_CHILD|BS_PUSHLIKE|BS_OWNERDRAW,0,0,15,15,hPallete, NULL, hInst, NULL);
if (!hButton) return FALSE;
ShowWindow(hButton, SW_SHOWNORMAL);
UpdateWindow(hButton);
TCHAR szCls[MAX_LOADSTRING];
GetClassName(hButton,szCls,MAX_LOADSTRING);
If(szCls==szButtonCls)
{
//Do Something
}
for some reason the last statement If(szCls==szButtonCls)
is returning false. Any ideas on how to fix it?