Search:

Type: Posts; User: r1ck0r

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: cursor location

    by r1ck0r
    Replies
    9
    Views
    1,925

    ^That's a whole lot of fuss considering the...

    ^That's a whole lot of fuss considering the EM_GETSEL message does the exact thing he wants, why reinvent the wheel? ;)
  2. Thread: cursor location

    by r1ck0r
    Replies
    9
    Views
    1,925

    If no text is selected, both the starting...

    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.
  3. Thread: cursor location

    by r1ck0r
    Replies
    9
    Views
    1,925

    http://msdn.microsoft.com/library/default.asp?url=...

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/editcontrols/editcontrolreference/editcontrolmessages/em_getsel.asp

    -r1ck0r
  4. Thread: flickering

    by r1ck0r
    Replies
    10
    Views
    1,998

    The style property can be NULL, yes. Other...

    The style property can be NULL, yes.
    Other window class styles can be found here:...
  5. Thread: flickering

    by r1ck0r
    Replies
    10
    Views
    1,998

    As Ken already stated, CS_VREDRAW and CS_HREDRAW...

    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...
  6. Thread: wM_SIZING

    by r1ck0r
    Replies
    6
    Views
    5,393

    I just whipped this up in the reply field,...

    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.
  7. Replies
    4
    Views
    15,675

    Whenever I do this I usually just subclass the...

    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...
  8. Replies
    13
    Views
    3,679

    You're still getting those linker errors? Are...

    You're still getting those linker errors?
    Are you definitely linking to gdi32.lib?
  9. Replies
    13
    Views
    3,679

    I use Microsoft Visual C++ Pro 6.0, if you would...

    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...
  10. Replies
    13
    Views
    3,679

    Here's your code, works fine for me. ...

    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...
  11. Replies
    8
    Views
    1,441

    Then what is your problem? If you get the...

    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.
  12. Replies
    8
    Views
    1,441

    When you create a new project, it must ask you...

    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.
  13. Replies
    8
    Views
    1,441

    Are you trying to make a windows application but...

    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...
  14. Replies
    13
    Views
    3,679

    For the first question, try this: ...

    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 =...
  15. Replies
    3
    Views
    2,079

    I'm not sure about MFC, but I know with pure...

    I'm not sure about MFC, but I know with pure win32 api you can use owner drawn listboxes....
  16. Thread: Hover Style

    by r1ck0r
    Replies
    8
    Views
    3,936

    You just need to update your compiler.

    You just need to update your compiler.
  17. Thread: Hover Style

    by r1ck0r
    Replies
    8
    Views
    3,936

    The ODS_HOTLIGHT...

    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.
  18. Replies
    5
    Views
    1,436

    GetWindowText...

    GetWindowText

    You really should search more, I am 100% sure this has been asked many times before, laziness.
  19. Thread: Password gate

    by r1ck0r
    Replies
    4
    Views
    1,151

    There is a 'Windows Programming' section on this...

    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...
  20. Thread: Password gate

    by r1ck0r
    Replies
    4
    Views
    1,151

    I'm just going to guess what you mean by...

    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...
  21. Replies
    4
    Views
    5,461

    it seems that if you are wanting to hook the...

    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...
  22. Replies
    11
    Views
    2,529

    yes.

    yes.
  23. Replies
    11
    Views
    2,529

    In my above post I stated that you can replace...

    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...
  24. Replies
    11
    Views
    2,529

    you can give the edit control a frame by giving...

    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...
  25. Replies
    7
    Views
    3,320

    I am guessing Cool-August is using the console,...

    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...
Results 1 to 25 of 30
Page 1 of 2 1 2