Click here to Skip to main content
15,921,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Looking for free FTP library to build FTP client. Pin
George217-Oct-03 3:47
George217-Oct-03 3:47 
GeneralRe: Looking for free FTP library to build FTP client. Pin
JohnJ17-Oct-03 4:13
JohnJ17-Oct-03 4:13 
GeneralRe: Looking for free FTP library to build FTP client. Pin
George217-Oct-03 4:34
George217-Oct-03 4:34 
GeneralRe: Looking for free FTP library to build FTP client. Pin
Vitali Halershtein17-Oct-03 4:19
Vitali Halershtein17-Oct-03 4:19 
GeneralRe: Looking for free FTP library to build FTP client. Pin
George217-Oct-03 4:37
George217-Oct-03 4:37 
GeneralRe: Looking for free FTP library to build FTP client. Pin
Vitali Halershtein17-Oct-03 5:07
Vitali Halershtein17-Oct-03 5:07 
GeneralIHTMLDocument2, print template and COM Object Pin
User 64185516-Oct-03 21:18
User 64185516-Oct-03 21:18 
GeneralComboBox problems when moving... Pin
Peter Mares16-Oct-03 20:56
Peter Mares16-Oct-03 20:56 
Hi everyone,

I have the following code that works GREAT except for when ComboBox controls are present...

<br />
::GetWindowRect(hWndChild, &rect);<br />
topLeft.x = rect.left;<br />
topLeft.y = rect.top;<br />
bottomRight.x = rect.right;<br />
bottomRight.y = rect.bottom;<br />
::ScreenToClient( pData->pParentWnd->m_hWnd, &topLeft );<br />
::ScreenToClient( pData->pParentWnd->m_hWnd, &bottomRight );<br />
if ( pData->uFlags & KCSB_ATTACH_LEFT )<br />
{<br />
	topLeft.x += pData->nOffset;<br />
	bottomRight.x += pData->nOffset;<br />
}<br />
else if ( pData->uFlags & KCSB_ATTACH_TOP )<br />
{<br />
	topLeft.y += pData->nOffset;<br />
	bottomRight.y += pData->nOffset;<br />
}<br />
::SetWindowPos( hWndChild, <br />
				0, <br />
				topLeft.x, <br />
				topLeft.y, <br />
				bottomRight.x - topLeft.x, <br />
				bottomRight.y - topLeft.y,<br />
				SWP_FRAMECHANGED | SWP_NOZORDER );<br />
<br />


Ok, here is the scenario. At some point, that code will be executed to shift all child windows on a parent dialog up by a certain offset. Everything works great, and even the combobox's shift..

BUT

If the combobox controls are shifted, they lose their ability to display their text in the contained edit control, they don't show their cursor (when focus is on them) and they don't show anything that is being entered into them (but they do store the data, and one can query the text programmatically). The drop downs work great tho Wink | ;)

Any ideas? (I'm using MFC7 for this, but I don't think thats the problem...)


www.kinkycode.com
[Glossary Manager] [AfterThought Backup Lite]

99 little bugs in the code, 99 little bugs,
Fix 1 bug, recompile....
101 little bugs in the code...
GeneralConsole Window in VC Managed Extension samples Pin
Liaqat Fayyaz16-Oct-03 20:40
Liaqat Fayyaz16-Oct-03 20:40 
GeneralRe: Console Window in VC Managed Extension samples Pin
Anonymous16-Oct-03 22:40
Anonymous16-Oct-03 22:40 
GeneralRe: Console Window in VC Managed Extension samples Pin
Mike Dimmick16-Oct-03 22:40
Mike Dimmick16-Oct-03 22:40 
Generalabt view in html Pin
SatyaDY16-Oct-03 20:10
SatyaDY16-Oct-03 20:10 
GeneralInternational Password Encryption Pin
skallestad16-Oct-03 18:00
skallestad16-Oct-03 18:00 
GeneralRe: International Password Encryption Pin
Johnny ²17-Oct-03 8:33
Johnny ²17-Oct-03 8:33 
Generaldll/ActiveX issue Pin
work_to_live16-Oct-03 17:36
work_to_live16-Oct-03 17:36 
QuestionWhat is an Illegal Seek and what can I do? Pin
elchip16-Oct-03 15:37
elchip16-Oct-03 15:37 
AnswerRe: What is an Illegal Seek and what can I do? Pin
Johnny ²16-Oct-03 21:39
Johnny ²16-Oct-03 21:39 
GeneralRe: What is an Illegal Seek and what can I do? Pin
elchip17-Oct-03 1:58
elchip17-Oct-03 1:58 
AnswerRe: What is an Illegal Seek and what can I do? Pin
Steve S17-Oct-03 1:53
Steve S17-Oct-03 1:53 
QuestionBest way to implement keyboard shortcuts? Pin
IGx8916-Oct-03 14:19
IGx8916-Oct-03 14:19 
Questionextending intellisense in VS 6.0 ? Pin
vark16-Oct-03 13:11
vark16-Oct-03 13:11 
AnswerRe: extending intellisense in VS 6.0 ? Pin
Mike Dimmick16-Oct-03 22:42
Mike Dimmick16-Oct-03 22:42 
Questionhow can i open and read PS/2 port ? Pin
asd175316-Oct-03 11:32
asd175316-Oct-03 11:32 
Questionhow can i open and read PS/2 port ? Pin
16-Oct-03 11:32
suss16-Oct-03 11:32 
Generalquick cmd prompt question Pin
keegan16-Oct-03 10:42
keegan16-Oct-03 10:42 

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.