Click here to Skip to main content
16,010,650 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralTimer with 1ms(accurate) resolution Pin
ManishSaha25-Nov-04 2:46
ManishSaha25-Nov-04 2:46 
GeneralRe: Timer with 1ms(accurate) resolution Pin
Joaquín M López Muñoz25-Nov-04 2:52
Joaquín M López Muñoz25-Nov-04 2:52 
GeneralReply Joaquín & toxcct Pin
ManishSaha27-Nov-04 0:46
ManishSaha27-Nov-04 0:46 
GeneralRe: Timer with 1ms(accurate) resolution Pin
toxcct25-Nov-04 2:55
toxcct25-Nov-04 2:55 
GeneralGet the number of bytes in the port queue Pin
Cedric Moonen25-Nov-04 2:08
Cedric Moonen25-Nov-04 2:08 
GeneralRe: Get the number of bytes in the port queue Pin
Joaquín M López Muñoz25-Nov-04 2:49
Joaquín M López Muñoz25-Nov-04 2:49 
GeneralRe: Get the number of bytes in the port queue Pin
Cedric Moonen25-Nov-04 2:54
Cedric Moonen25-Nov-04 2:54 
GeneralProblem with Graphics & CEdit scrolling Pin
mfc_surfer25-Nov-04 1:29
mfc_surfer25-Nov-04 1:29 
I have a CEdit control on a dialog box and I'm creating a dynamic rectangle on the CEdit but it doesn't scroll vertically when I put the rectangle on the bottom of the CEdit?!! I've set the multiline+ vertical scroll parameters
Please help me! my code has come below:
CRect rc, statusRect;
GetDlgItem(IDC_GRAPH_EDIT)->GetWindowRect(rc);
CWnd* pWnd = GetDlgItem(IDC_GRAPH_EDIT);
ScreenToClient(rc);
statusRect.top = rc.bottom - 40;
statusRect.bottom = statusRect.top + 20;

statusRect.left = rc.Width()/2 - 40;
statusRect.right = statusRect.left + 80;

m_dynamic = new CButton;
m_dynamic->Create("Dynamic",WS_CHILD|WS_VISIBLE|BS_PUSHBUTTON|BS_OWNERDRAW|BS_MULTILINE,statusRect,pWnd,2000);
m_dynamic->SetFont(fontGeorgia);
m_dynamic->SetColor(BLUE, LBLUE);
m_dynamic->ShowWindow(SW_SHOW);

I've tried the following codes but it didn't help:
((CEdit *)(GetDlgItem(IDC_GRAPH_EDIT)))->SetSel(GetWindowTextLength(),-1);
or
((CEdit *)(GetDlgItem(IDC_GRAPH_EDIT)))->PostMessage(WM_VSCROLL, SB_BOTTOM);
UpdateData(TRUE);
or
((CEdit *)(GetDlgItem(IDC_GRAPH_EDIT)))->LineScroll(2);

Any idea or suggestion will be appreciated.
thanks

GeneralRe: Problem with Graphics & CEdit scrolling Pin
John R. Shaw25-Nov-04 6:19
John R. Shaw25-Nov-04 6:19 
GeneralRe: Problem with Graphics & CEdit scrolling Pin
mfc_surfer27-Nov-04 19:11
mfc_surfer27-Nov-04 19:11 
GeneralRe: Problem with Graphics & CEdit scrolling Pin
John R. Shaw28-Nov-04 7:42
John R. Shaw28-Nov-04 7:42 
GeneralRegarding Registry Pin
max_gundam1525-Nov-04 1:08
max_gundam1525-Nov-04 1:08 
GeneralRe: Regarding Registry Pin
shiraztk25-Nov-04 1:21
shiraztk25-Nov-04 1:21 
GeneralMFC CRichEditCtrl, read-only + drag&drop Pin
Niklas L25-Nov-04 0:53
Niklas L25-Nov-04 0:53 
General"Please Wait..." Dialog Pin
LittleYellowBird24-Nov-04 23:31
LittleYellowBird24-Nov-04 23:31 
GeneralRe: "Please Wait..." Dialog Pin
toxcct24-Nov-04 23:54
toxcct24-Nov-04 23:54 
GeneralRe: "Please Wait..." Dialog Pin
Jack Puppy25-Nov-04 0:09
Jack Puppy25-Nov-04 0:09 
GeneralRe: "Please Wait..." Dialog Pin
faroqtam25-Nov-04 8:06
faroqtam25-Nov-04 8:06 
Generalstring tables & language switch Pin
toxcct24-Nov-04 23:23
toxcct24-Nov-04 23:23 
GeneralRe: string tables & language switch Pin
Jack Puppy25-Nov-04 0:04
Jack Puppy25-Nov-04 0:04 
GeneralRe: string tables & language switch Pin
V.25-Nov-04 2:12
professionalV.25-Nov-04 2:12 
GeneralRe: string tables & language switch Pin
toxcct25-Nov-04 2:35
toxcct25-Nov-04 2:35 
GeneralRe: string tables & language switch Pin
V.25-Nov-04 2:43
professionalV.25-Nov-04 2:43 
GeneralRe: string tables & language switch Pin
toxcct25-Nov-04 2:52
toxcct25-Nov-04 2:52 
GeneralRe: string tables & language switch Pin
faroqtam25-Nov-04 8:13
faroqtam25-Nov-04 8:13 

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.