^That's a whole lot of fuss considering the EM_GETSEL message does the exact thing he wants, why reinvent the wheel? ;)
Type: Posts; User: r1ck0r
^That's a whole lot of fuss considering the EM_GETSEL message does the exact thing he wants, why reinvent the wheel? ;)
If no text is selected, both the starting character position and the ending character position will be equal, this value will be the cursor position.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/editcontrols/editcontrolreference/editcontrolmessages/em_getsel.asp
-r1ck0r
The style property can be NULL, yes.
Other window class styles can be found here:...
As Ken already stated, CS_VREDRAW and CS_HREDRAW both contribute to window flickering, they cause the whole window to be repainted when any rezising takes place, remove them and I can say confidently...
I just whipped this up in the reply field, untested.
WM_GETMINMAXINFO:
{
MINMAXINFO * mmiStruct = (MINMAXINFO*)lParam;
POINT ptPoint;
ptPoint.x = 300; //Minimum width of the window.
Whenever I do this I usually just subclass the edit control and capture the WM_CHAR Message.
However, I believe you can also give the edit control the ES_MULTILINE style, and make the search button...
You're still getting those linker errors?
Are you definitely linking to gdi32.lib?
I use Microsoft Visual C++ Pro 6.0, if you would listen to me in the other thread and create a windows project, I'm sure it will work, because you're using a blank project needed libraries are not...
Here's your code, works fine for me.
#include <windows.h>
LRESULT CALLBACK WindowProcedure(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
char szClassName[ ] = "App";
char...
Then what is your problem?
If you get the console window apearing, obviously dev-cpp isn't doing what it's supposed to, so just select a windows project and problem solved.
When you create a new project, it must ask you whether you would like to create a console project, windows project, DLL, etc... You must select windows project.
Are you trying to make a windows application but when you execute your program a console window pops up?
If so, you're creating the wrong type of project, you must be creating a win32 console...
For the first question, try this:
while(GetMessage(&Msg, NULL, 0, 0) > 0)
-
For the second question, you will have to create a red brush,
HBRUSH BackgroundBrush =...
I'm not sure about MFC, but I know with pure win32 api you can use owner drawn listboxes....
You just need to update your compiler.
The ODS_HOTLIGHT flag is used to notify about mouse hovering.
However, I believe your owner drawn button will only recieve these notifications when you have called the TrackMouseEvent function.
GetWindowText
You really should search more, I am 100% sure this has been asked many times before, laziness.
There is a 'Windows Programming' section on this forum, this question would've been more suited there. Anyway, this link: http://www.winprog.net/ will give you an introduction into windows...
I'm just going to guess what you mean by 'password gate'..
Here is some code I just threw together as an example of console password input. This code will most likely contain bugs, but it should...
it seems that if you are wanting to hook the dialog (by setting the OFN_ENABLEHOOK flag). Then it's not possible for that 'places bar' to show up. I've made many attempts to try and overcome this but...
yes.
In my above post I stated that you can replace SS_BLACKFRAME with WS_BORDER and get the effect you are trying to achieve, yet while still maintaining the abilty to change the static controls text. I...
you can give the edit control a frame by giving it the style WS_BORDER.
edit: also, I have just noticed, if you comment out the SS_BLACKFRAME style, everything works as normal. you should remove...
I am guessing Cool-August is using the console, which means the above code will not work. As far as I'm awear, there is no 'non-hackerish' way to change the color of the console screen. Yet I am not...