CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: OneEyeMan

Page 1 of 31 1 2 3 4

Search: Search took 0.16 seconds.

  1. Re: Counting logical (wrapped) lines in the text control

    Hi,
    1. What will I get?
    2. How do I get "count of wrapped lines"?

    Thank you.
  2. Re: Counting logical (wrapped) lines in the text control

    Hi,
    Understood,
    Except, I need to know the count of wrapped lines, not how many lines are currently displayed in the control.

    And yes it is in the edit control - I have been out of the Win32 for...
  3. Re: Counting logical (wrapped) lines in the text control

    Hi,
    I'm not drawing text.
    I'm using text control to display some text.

    And in such control I want to know how many wrapped lines are there.

    Simple.

    And so CDC class will not help here.
  4. Re: Counting logical (wrapped) lines in the text control

    Hi,
    How else to know the size of the text control?

    Thank you.
  5. Re: Counting logical (wrapped) lines in the text control

    Hi,
    I'm not counting the "displayed" lines - I'm counting wrapped lines, i.e. how the control displayed them.

    Also - why do you ask?

    Thank you.
  6. Re: Counting logical (wrapped) lines in the text control

    Hi,
    Open WordPad and start typing. DO NOT PRESS ENTER.

    At some point of time the text will go to a new line (wrap).

    After typing more - press Enter.

    Now what I'd like to know is:

    How...
  7. Counting logical (wrapped) lines in the text control

    Hi, ALL,
    There is a EM_GETLINECOUNT, but it counts physical lines of the coyntrol, i.e. basically counts '\n\r' symbol.

    Is there a way to count number of logical (wrapped) lines in the text...
  8. Replies
    2
    Views
    1,592

    DnD in ListCtrl

    Hi, ALL,
    There is no built-in support for DnD in ListCtrl.
    There is a BEGINDRAG message but no ENDDRAG.

    So I made it b handling BEGNDRAG and "mouse up" messages.

    The problem is I don't see a...
  9. Implicit conversion loses integer precision

    Hi, ALL,
    I am doing a cross-platform programming using C++ cross-platform library.

    At one point of time my program needs to read the value from the configuration file. The value will have value...
  10. Replies
    3
    Views
    844

    Re: Converting to caret position

    Hi,


    Yes, it did.
    However, MSDN says:



    I tried to check the EM_EXLINEFROMCHAR, but it uses different parameters, if I understand correctly.
  11. Replies
    3
    Views
    844

    [SOLVED]: Converting to caret position

    Hi, ALL,
    Is there a simple way to go from SELCHANGE structure to the (x.y) caret position? I was thinking about EN_SELCHANGE message...
    Or I should handle different one?

    Thank you.
  12. Replies
    1
    Views
    833

    How to not display a UI?

    Hi, ALL,
    MSDN at this link states that there is a flag



    However, it also indicates that the structure has



    which I think contradicts each other as there is no indication I can set the...
  13. Replies
    14
    Views
    7,647

    Re: Weirdness with ODBC API

    Hi




    int i = 0;
    SQLSMALLINT numColumns;
    ret = SQLColumns( stmt_col, catalog_name, SQL_NTS, L"INFORMATION_SCHEMA", SQL_NTS, L"ROUTINES", SQL_NTS, NULL, 0 );
    ret = SQLNumResultCols( stmt_col,...
  14. Replies
    14
    Views
    7,647

    Re: Weirdness with ODBC API

    Hi,


    It is a 29th column - something about catalog. I will post a name tonight when I get home.

    Thank you.
  15. Replies
    14
    Views
    7,647

    Re: Weirdness with ODBC API

    Hi,


    I can't call this in a loop, because I'm binding to a different variable names.

    And I did say that error checking is omitted.

    Thank you.
  16. Replies
    14
    Views
    7,647

    Re: Weirdness with ODBC API

    Hi,


    Its actually called many times - for every column that SQLColumns() return.

    Thank you.
  17. Replies
    14
    Views
    7,647

    Re: Weirdness with ODBC API

    Hi,




    ret = SQLColumns();
    ret = SQLBindColumn();
    ret = SQLBindColumn();
    ...
  18. Replies
    14
    Views
    7,647

    Re: Weirdness with ODBC API

    VictorN


    I'm looking at the debugger.

    Thank you.
  19. Replies
    14
    Views
    7,647

    Weirdness with ODBC API

    Hi, guys,



    for( int count = 0; count < i; count++ )
    {
    ret = SQLColAttribute(...
  20. Replies
    5
    Views
    6,459

    Re: Memory leaks detected

    2kaud,
    Thank you for the code.
    Works like a charm.
  21. Replies
    5
    Views
    6,459

    Re: Memory leaks detected

    2kaud,
    I commented ut that code and now I have a crash.

    The code now is:



    ValuueType() : intValue( 0 )/*, doubleValue( 0.0 ), stringValue( L"" )*/ {}
  22. Replies
    5
    Views
    6,459

    Re: Memory leaks detected

    2kaud,


    So basically what you are saying is that in order to fix it I should initialize only one member in constructor of the
    union ValueType? I.e,.:



    ValuueType() : intValue( 0 ) {}
  23. Replies
    5
    Views
    6,459

    [SOLVED]: Memory leaks detected

    Hi, ALL,


    struct DataEditFiield
    {
    int type, m_size, m_precision;
    union ValuueType
    {
    void *blobValue;
    int intValue;
  24. Replies
    6
    Views
    2,653

    MSDN: Documentation issue

    Hi, ALL,
    Could someone lease explain why some pages in MS documentation do not match when they should?

    1. Page 1 at...
  25. Replies
    19
    Views
    2,469

    Re: Template class inside a vector

    Thx.
Results 1 to 25 of 756
Page 1 of 31 1 2 3 4





Click Here to Expand Forum to Full Width

Featured