Hello, I don't know MFC but seeing some net samples I think it will be similar except by calling the object class (and I suppose more other differences of course), but I think you'll find it usefull....
Type: Posts; User: Niara
Hello, I don't know MFC but seeing some net samples I think it will be similar except by calling the object class (and I suppose more other differences of course), but I think you'll find it usefull....
I'm reading your code, I think there's something on the 'if' line: GetMenuState never returns -1. This is the reference:
If the specified item does not exist, the return value is 0xFFFFFFFF.
...
Maybe I answered too fast, sorry.
The WM_INITMENUPOPUP fires when the menu is about to show: the user places the cursor over the menu, WM_INITMENUPOPUP is fired, and the the menu is showed. That...
Hello, this is the WM_INITMENUPOPUP reference:
WM_INITMENUPOPUP
hmenuPopup = (HMENU) wParam; // handle of submenu
uPos = (UINT) LOWORD(lParam); // submenu item position ...
You can do it with tabs:
A tab control is analogous to the dividers in a notebook or the labels in a file cabinet. By using a tab control, an application can define
multiple pages for the...
Check also Announcements - General Programming Boards
Niara
"..of any computer..."
On windows the startup is a registry entry that tells the system to run a file on certain path, you can do it through the api functions; also nsis installer have its own...
Or even easier: use the win32 GetTickCount instead time() functions to get the milliseconds before and after, then just deduct. On the MSDN/GetTickCount() theres some better explanation than mine,...
You can save the time befor the loop and check it after:
//#include <time.h>
//involved variables
clock_t start_time, end_time;
double elapsed_time;
"...What actually goes within a resource file?..."
Well, on the resource files goes the resources :)
Heres a sample from both files:
//definitions.h
#define ARBITRARY_IMAGE_ID 100
"...What does the int 101 stand for?..."
Resources are represented by integers, and you define an integer with an easily readable value
//resource file *rc
MY_APPLICATION_ICON ICON...
As far as I know you have to check the scrollbar messages (WM_HSCROLL, WM_VSCROLL) to resetup the visible area over the whole 'real' area. I'm not sure if it can be done through the HDC modifying the...
"...I associate specific data with the class..."
When you create a class you can set some extra data through the 'cbWndExtra' variable on the WNDCLASSEX struct; with this you will be able to store...
The first line on the Win32 Reference Manual about 'EM_EXSETSEL' says:
The EM_EXSETSEL message selects a range of characters and/or OLE objects in a rich edit control.
See also the...
Ups sorry memcpy, I haven't seen your post :)
I haven't tested it, but what size have the 'input' buffer? If is 0 bytes you shouldn't have to scanf anything into it no?
Niara
For the errors it seems that you have forgotten to link the winsock library.
Niara
"...(line 65) The function (listen) will not return until a connection request is made..."
Are you sure? 'listen' function starts your socket listening for incoming socket connections until the...
You can set different values for each item as item data, then just get the item data using LB_GETITEMDATA message and switch it:
//while setting up the list
int item_index;
item_index =...
"...I know inet_ntoa is deprecated..."
Then, why don't you start using using inet_pton() or inet_ntop() functions rather tha discuss about wannabes jobs? Also, are you using a hacking library...
"...could you post the compete code so that i can slap it into the compiler?..."
No, I can't post the complete code because it's your task to figure it out how to integrate :) . That's a single...
"...i have looked at a truckload of websites on google relating to subclassing an editbox and none offer a simple clear-cut code example..."
Not?? Have you seen the win32 reference manual on the...
You can implement 2 arrays, one for the 1-valued characters, and other for the 2-valued; then simply read char by char and check out on which array is; for the ignored characters, if they all are non...
Draw you own crosshair on the mouse position :)
Niara
I don't know any rad tool for that, but meanwhile can't find any you can search about splash screens, you will be able to make something similar to windows media player masked mode using the default...