I create a tab control:
// create the tab control
GetClientRect(hwnd, &rect);
hTC_Wnd = CreateWindowEx(0, WC_TABCONTROL, NULL,
WS_VISIBLE | WS_TABSTOP | WS_BORDER | TCS_HOTTRACK, ...
Type: Posts; User: tyouk
I create a tab control:
// create the tab control
GetClientRect(hwnd, &rect);
hTC_Wnd = CreateWindowEx(0, WC_TABCONTROL, NULL,
WS_VISIBLE | WS_TABSTOP | WS_BORDER | TCS_HOTTRACK, ...
I looked over the code. I decided to rewrite the program because of the problems I have been having. I am going to implement each control, one at a time. Testing each out thouroughly to make sure...
You could always just include the .rc and .h files for the resources created in one project to another. Unless your meaning a more of "stealing" method from one program to another?
Tyouk
I am definitely getting messages through the edit's callback. I have it setup to catch three specific inputs. VK_RETURN, VK_TAB and VK_BACK. Each displaying a message such as "Enter key was...
I tried all your suggestions. However, none have worked so far. I really can't figure this one out. I made sure that all resource IDs (childs of the main window) are all not using the same resource...
I looked over your example and compared it to my own code. I find that I have everything except that I could not place the code in my main windows procedure for the WM_SETFOCUS message as is in your...
I have subclassed and edit box. Here is the code:
// get ready for user input
err = ListView_GetSubItemRect(expHwnds.hLV_Wnd, 0, 0, LVIR_LABEL, &rect);
if( err == 0 )
{
sprintf(error,...
Yes I have created the ListView using the LVS_EDITLABELS style, however, that style hinders your access to actually edit the information in the ListView. You can only edit the first item, and I want...
Okay when I call the ListView_GetSubItemRect() it returns the co-ordinates, however, my co-ords are not correct. Using the RECT that is filled by the ListView_GetSubItemRect() call I am creating an...
Wow, can't believe I overlooked that! Thanks for showing me my idiocy, definitely isn't the first time this has happened! haha.
Can someone tell me why the following code is creating a new window just for my editbox?
expHwnds.hEdit = CreateWindow("EDIT", "MM/DD/YYYY", WS_BORDER | WS_VISIBLE | ES_MULTILINE | ES_WANTRETURN,...
I use a program for my job that is made up of four separate sections. Separating the four sections is a bar that the mouse allows you to resize the four different sections (either horizontally or...
Ya I figured out how to get the values. Thanks though. What I ended up having to do was create the control in the WM_CREATE and then when a WM_SIZE message was rec'd use the MoveWindow() function to...
Thanks, fixed my problems.
Okay I somewhat figured this out by digging deeper into the MSDN archives there. Now the code is as follows (so far):
case WM_NOTIFY:
if( sizeof(*(lParam)) == sizeof(NMMOUSE) )
{...
Is there a special message that I am not aware of being sent to my main window procedure that indicates a tab on a tab control being clicked on? (One of the tabs?) I've tried WM_LBUTTONUP messages,...
Hmmm... I have no idea how to check the (CREATESTRUCT)lParam. I've tried many things such as:
CREATESTRUCT create = (CREATESTRUCT)lParam; // then trying to access it... get an error
I've tried...
When I call GetClientRect() it's not even returning half the size that my client's area fills. Why is this? My screen resolution is set to 1600x1200 and I am creating my window with WS_MAXIMIZED...
Thanks
What I need is a way to sort a listview based on dates. My first column is dates. What I need is the most current date at the top and so 01/01/2005 (MM/DD/YYYY) would be at the bottom.
Is there...
Please correct me if I am wrong, but your problem might lie in the NotifySysIcon() function. When your calling the LoadIcon() you are using the MAKEINTRESOURCE() macro with an int. I've always done...
Sorry, I can't. I've never bothered to learn C++ yet. Waiting till I master C before I move on.
Tyouk
I used to have a copy of a local MSDN library, it was very nice to have when I had it installed. Anyone know where I could download a copy?
I haven't tried it before, but it might be possible that EndDialog() is being passed the HWND to your main window? I could be wrong but it might be able to destroy normal window. Correct me please if...
Okay never mind. Me just being stupid...
g_szExp was initialized as: char g_szExp = "Expense Module";
anyone see my error? lol
Thanks though.