Click here to Skip to main content
15,905,875 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Modeless Dialog Doesn't Destroy During WM_CLOSE? Pin
Dan Wilson12-Feb-03 3:23
Dan Wilson12-Feb-03 3:23 
AnswerRe: Modeless Dialog Doesn't Destroy During WM_CLOSE? Pin
valikac11-Feb-03 12:20
valikac11-Feb-03 12:20 
GeneralXML-safe strings, and iostreams Pin
Simon Steele11-Feb-03 11:10
Simon Steele11-Feb-03 11:10 
GeneralRe: XML-safe strings, and iostreams Pin
palbano11-Feb-03 11:13
palbano11-Feb-03 11:13 
GeneralRe: XML-safe strings, and iostreams Pin
Simon Steele11-Feb-03 11:42
Simon Steele11-Feb-03 11:42 
GeneralRe: XML-safe strings, and iostreams Pin
Simon Steele11-Feb-03 11:46
Simon Steele11-Feb-03 11:46 
QuestionHow to draw password bullets in an edit control on XP? Pin
Brian Morearty11-Feb-03 10:30
Brian Morearty11-Feb-03 10:30 
AnswerRe: How to draw password bullets in an edit control on XP? Pin
MAAK12-Feb-03 0:02
MAAK12-Feb-03 0:02 
I do not know exactly how your code works, but as I understand you draw the edit control part by part as an image on th parent window DC when it is not focused.

Did you try to get the DC of the control directly and blitting it? By that you will just copy the edit's look just as the window draws it however it do it.

this is sample code may explain what i mean:
<br />
CClientDC dc(this); //client dc of the edit's parent window<br />
GetDlgItem(IDC_EDIT1)->HideCaret(); //caret should not be drawn<br />
CWindowDC tempDC(GetDlgItem(IDC_EDIT1));  //window dc make a snapshot of the whole edit<br />
//getting the rectangle of the edit<br />
CRect rct;<br />
GetDlgItem(IDC_EDIT1)->GetWindowRect(rct);<br />
ScreenToClient(rct); //convert to parent's coordinate<br />
<br />
//darw the edit control's image on the dc<br />
dc.BitBlt(rct.left, rct.top, rct.Width(), rct.Height(), &tempDC, 0, 0, SRCCOPY);<br />
GetDlgItem(IDC_EDIT1)->ShowCaret(); //re-show the caret<br />

GeneralRe: How to draw password bullets in an edit control on XP? Pin
Brian Morearty12-Feb-03 5:47
Brian Morearty12-Feb-03 5:47 
GeneralDynamic linkage Pin
RalfPeter11-Feb-03 10:25
RalfPeter11-Feb-03 10:25 
GeneralRe: Dynamic linkage Pin
Christian Graus11-Feb-03 11:13
protectorChristian Graus11-Feb-03 11:13 
GeneralRe: Dynamic linkage Pin
Chris Richardson11-Feb-03 11:24
Chris Richardson11-Feb-03 11:24 
GeneralDialogbox doesn't appear when Treelist control added Pin
nitingonsalves11-Feb-03 9:11
nitingonsalves11-Feb-03 9:11 
GeneralRe: Dialogbox doesn't appear when Treelist control added Pin
Michael Dunn11-Feb-03 9:29
sitebuilderMichael Dunn11-Feb-03 9:29 
GeneralRe: Dialogbox doesn't appear when Treelist control added Pin
nitingonsalves11-Feb-03 10:35
nitingonsalves11-Feb-03 10:35 
GeneralRe: Dialogbox doesn't appear when Treelist control added Pin
nitingonsalves11-Feb-03 10:46
nitingonsalves11-Feb-03 10:46 
GeneralTaskbar HELP! - MFC/C++ Pin
mister trunks11-Feb-03 8:54
mister trunks11-Feb-03 8:54 
GeneralShow macro code expanded in Visual Studio Pin
Aaron Schaefer11-Feb-03 8:21
Aaron Schaefer11-Feb-03 8:21 
GeneralRe: Show macro code expanded in Visual Studio Pin
Michael Dunn11-Feb-03 8:28
sitebuilderMichael Dunn11-Feb-03 8:28 
Generalround off problem Pin
wong190711-Feb-03 8:14
wong190711-Feb-03 8:14 
GeneralRe: round off problem Pin
Rickard Andersson2011-Feb-03 8:27
Rickard Andersson2011-Feb-03 8:27 
GeneralRe: round off problem Pin
PJ Arends11-Feb-03 8:35
professionalPJ Arends11-Feb-03 8:35 
GeneralRe: round off problem Pin
PJ Arends11-Feb-03 8:31
professionalPJ Arends11-Feb-03 8:31 
GeneralRe: round off problem Pin
Chris Losinger11-Feb-03 9:36
professionalChris Losinger11-Feb-03 9:36 
GeneralRe: round off problem Pin
David Chamberlain11-Feb-03 9:00
David Chamberlain11-Feb-03 9:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.