Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to increase character limit in MFC static control

Tags:

c++

mfc

We are using MFC static control in a dialog box to display some content to user. Both static control and dialog box are defined in a resource file (.rc) as LTEXT and DIALOG. Problem is if content is more than 256 character, it gets truncated. Does anyone know how can this limit be increased. The control and dialog box are old style.

like image 538
Gaurav Avatar asked May 04 '11 10:05

Gaurav


People also ask

What is a static control?

A static control is a control that enables an application to provide the user with informational text and graphics that typically require no response.


1 Answers

enter image description here

You can vote for this problem here. Don't expect miracles, the resource compiler is neolithic. You'll have to work around it by using more than one static control or setting the text at runtime in the WM_INITDIALOG message handler. Don't overestimate the user's patience.

like image 160
Hans Passant Avatar answered Oct 28 '22 23:10

Hans Passant