============================================================================= UpdateLineNumberWidth()
| 5364 | // |
| 5365 | // |
| 5366 | void UpdateLineNumberWidth() |
| 5367 | { |
| 5368 | char tchLines[32]; |
| 5369 | int iLineMarginWidthNow; |
| 5370 | int iLineMarginWidthFit; |
| 5371 | if ( bShowLineNumbers ) { |
| 5372 | wsprintfA ( tchLines, "_%i_", SendMessage ( hwndEdit, SCI_GETLINECOUNT, 0, 0 ) ); |
| 5373 | iLineMarginWidthNow = ( int ) SendMessage ( hwndEdit, SCI_GETMARGINWIDTHN, 0, 0 ); |
| 5374 | iLineMarginWidthFit = ( int ) SendMessage ( hwndEdit, SCI_TEXTWIDTH, STYLE_LINENUMBER, ( LPARAM ) tchLines ); |
| 5375 | if ( iLineMarginWidthNow != iLineMarginWidthFit ) { |
| 5376 | //SendMessage(hwndEdit,SCI_SETMARGINWIDTHN,0,0); |
| 5377 | SendMessage ( hwndEdit, SCI_SETMARGINWIDTHN, 0, iLineMarginWidthFit ); |
| 5378 | } |
| 5379 | } else { |
| 5380 | SendMessage ( hwndEdit, SCI_SETMARGINWIDTHN, 0, 0 ); |
| 5381 | } |
| 5382 | } |
| 5383 | //============================================================================= |
| 5384 | // |
| 5385 | // FileIO() |
no outgoing calls
no test coverage detected