Please... may anyone help me? I have a simple dialog box with a text inside RSRC.RC CONTROL "Name and Date", 105, STATIC, SS_CENTER | SS_CENTERIMAGE | WS_CHILD | WS_VISIBLE | WS_GROUP, 90, 234, 100, 15 How I can Make this text underlined? And, if possible, blue? In a simple way. The simplest, please... thanks a lot... blix
Blix, The simplest way of doing what you want is to draw the text yourself from within the Dialog Procedure, static controls aren't really designed to be all powerful, they just provide a simple, consistent look and feel for the user. Any starying from the standard normally involves rolling your own. To draw blue text, just put this in the dialog proc...
invoke BeginPaint,hWin,ADDR ps invoke SetTextColor,ps.hdc,00FF0000h invoke SetBkMode,ps.hdc,TRANSPARENT invoke TextOut,ps.hdc,10,10,ADDR szTest,14 invoke EndPaint,hWin,ADDR ps