Click here to Skip to main content
16,004,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to update main window from a child dialog?? Pin
Maximilien29-Oct-07 7:56
Maximilien29-Oct-07 7:56 
GeneralRe: How to update main window from a child dialog?? Pin
Kiran Satish29-Oct-07 8:44
Kiran Satish29-Oct-07 8:44 
QuestionDragging windows Pin
mcsherry29-Oct-07 7:32
mcsherry29-Oct-07 7:32 
AnswerRe: Dragging windows Pin
mcsherry29-Oct-07 7:42
mcsherry29-Oct-07 7:42 
GeneralRe: Dragging windows Pin
Mark Salsbery29-Oct-07 8:15
Mark Salsbery29-Oct-07 8:15 
GeneralRe: Dragging windows Pin
mcsherry29-Oct-07 8:17
mcsherry29-Oct-07 8:17 
GeneralRe: Dragging windows Pin
Mark Salsbery29-Oct-07 8:25
Mark Salsbery29-Oct-07 8:25 
QuestionHow to scroll client area in CDialog based window?? Pin
zarraza29-Oct-07 6:27
zarraza29-Oct-07 6:27 
Hi, i have SDI app and CDialog based window, i need to scroll client area if something in window is larger than window itself. I overwrite DoDataExchange() function and add :
SetWindowPos(&wndTop, 0, 0, 800, 500, SWP_SHOWWINDOW);<br />
	if(x==2){<br />
		ShowScrollBar(SB_BOTH);<br />
		SetScrollRange( SB_HORZ, 10, 5000);<br />
		SetScrollRange( SB_VERT, 10, 5000);<br />
        }<br />


But i can't scroll client area.

In previous app i use CFormView derrived window and overwrite OnUpdate() function using this code :
<br />
void CResize1View::OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint) <br />
{<br />
	// TODO: Add your specialized code here and/or call the base class<br />
	if(((m_iLiczbaBut+1)*50)> 400){<br />
		//SetScrollSizes(MM_TEXT, CSize(780,(m_iLiczbaBut+1)*50));<br />
		SetScrollSizes(MM_TEXT, CSize(780, (m_iLiczbaBut+2)*50));<br />
	}<br />
	else{<br />
		SetScrollSizes(MM_TEXT, CSize(780, 500));<br />
	}<br />
	<br />
}


It work corectly in CFormView, but this time i need the same in CDialog but i don't know how to do this. Please help.
AnswerRe: How to scroll client area in CDialog based window?? Pin
Jeffrey Walton29-Oct-07 10:47
Jeffrey Walton29-Oct-07 10:47 
QuestionGetting SNMP data with VC++ - is there a good project? Pin
Rhymhoont29-Oct-07 5:35
Rhymhoont29-Oct-07 5:35 
AnswerRe: Getting SNMP data with VC++ - is there a good project? Pin
led mike29-Oct-07 7:31
led mike29-Oct-07 7:31 
GeneralRe: Getting SNMP data with VC++ - is there a good project? Pin
Rhymhoont29-Oct-07 7:52
Rhymhoont29-Oct-07 7:52 
QuestionSetting the cursor position in CEdit control. Pin
chandu00429-Oct-07 5:09
chandu00429-Oct-07 5:09 
AnswerRe: Setting the cursor position in CEdit control. Pin
Mark Salsbery29-Oct-07 5:20
Mark Salsbery29-Oct-07 5:20 
AnswerRe: Setting the cursor position in CEdit control. Pin
David Crow29-Oct-07 5:50
David Crow29-Oct-07 5:50 
GeneralRe: Setting the cursor position in CEdit control. Pin
led mike29-Oct-07 6:25
led mike29-Oct-07 6:25 
GeneralRe: Setting the cursor position in CEdit control. Pin
chandu00429-Oct-07 18:45
chandu00429-Oct-07 18:45 
QuestionHow can i convert 24 bits BMP to 8 biBitCount(256 color)? Pin
Jane13129-Oct-07 3:07
Jane13129-Oct-07 3:07 
AnswerRe: How can i convert 24 bits BMP to 8 biBitCount(256 color)? Pin
Chris Losinger29-Oct-07 4:00
professionalChris Losinger29-Oct-07 4:00 
GeneralRe: How can i convert 24 bits BMP to 8 biBitCount(256 color)? Pin
Jane13129-Oct-07 16:51
Jane13129-Oct-07 16:51 
GeneralRe: How can i convert 24 bits BMP to 8 biBitCount(256 color)? Pin
Hamid_RT29-Oct-07 18:51
Hamid_RT29-Oct-07 18:51 
GeneralRe: How can i convert 24 bits BMP to 8 biBitCount(256 color)? Pin
Jane13129-Oct-07 21:11
Jane13129-Oct-07 21:11 
GeneralRe: How can i convert 24 bits BMP to 8 biBitCount(256 color)? Pin
Hamid_RT29-Oct-07 22:13
Hamid_RT29-Oct-07 22:13 
GeneralRe: How can i convert 24 bits BMP to 8 biBitCount(256 color)? Pin
Jane13130-Oct-07 16:41
Jane13130-Oct-07 16:41 
QuestionAbout dll use [Solved] Pin
Nelek29-Oct-07 2:52
protectorNelek29-Oct-07 2:52 

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.