Click here to Skip to main content
15,914,419 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: help with C++ program to decrypt something from ASCII Pin
KarstenK20-Oct-08 21:31
mveKarstenK20-Oct-08 21:31 
QuestionHow to extract HTML headers from CHttpFile? QueryInfo method is not working! Pin
Member 228101420-Oct-08 12:37
Member 228101420-Oct-08 12:37 
QuestionHow to write C++ application that with no GUI and no Console ? Pin
Yanshof20-Oct-08 12:36
Yanshof20-Oct-08 12:36 
AnswerRe: How to write C++ application that with no GUI and no Console ? Pin
Naveen20-Oct-08 14:25
Naveen20-Oct-08 14:25 
AnswerRe: How to write C++ application that with no GUI and no Console ? Pin
Richard Andrew x6420-Oct-08 14:40
professionalRichard Andrew x6420-Oct-08 14:40 
QuestionRe: How to write C++ application that with no GUI and no Console ? Pin
CPallini20-Oct-08 20:55
mveCPallini20-Oct-08 20:55 
AnswerRe: How to write C++ application that with no GUI and no Console ? Pin
Mark Salsbery21-Oct-08 5:35
Mark Salsbery21-Oct-08 5:35 
QuestionSetWindowPos question Pin
WayneK10020-Oct-08 11:21
WayneK10020-Oct-08 11:21 
I want to move one control over the top of another; the objective being that only one of the controls will be displayed (in the same place) depending upon possible modes of operation. In the following code all I want to do is move the IDC_GAINSLIDE control up on the y axis to the same position as the IDC_AGCTIMECONST control. It will remain in the same x axis position and retain its size. In the following code the window coordinates obtained via GetWindowRect are:
src.left 332, (IDC_AGCTIMECONST window)
src.top 103,
targ.left 332, (IDC_GAINSLIDE window)
targ.top 143

CRect src, targ;
pCtrl = GetDlgItem(IDC_AGCTIMECONST);
pCtrl->GetWindowRect(&src);
pCtrl->ShowWindow(SW_HIDE);
pCtrl = GetDlgItem(IDC_GAINSLIDE);
pCtrl->GetWindowRect(&targ);
pCtrl->SetWindowPos(NULL, targ.left, src.top, 0, 0, SWP_NOSIZE | SWP_NOZORDER | SWP_SHOWWINDOW);

Nothing happens to the position of the IDC_GAINSLIDE control when I do the above. However when I change the 3rd (y) parameter of SetWindowPos to 'src.top-60' the IDC_GAINSLIDE window is moved up to pretty much where I want it. I must be missing something obvious but I can't see it. Any ideas?

Thanks,
Wayne King
AnswerRe: SetWindowPos question Pin
Iain Clarke, Warrior Programmer21-Oct-08 1:51
Iain Clarke, Warrior Programmer21-Oct-08 1:51 
QuestionWrite to console Pin
rrrado20-Oct-08 6:46
rrrado20-Oct-08 6:46 
QuestionRe: Write to console Pin
David Crow20-Oct-08 7:31
David Crow20-Oct-08 7:31 
AnswerRe: Write to console Pin
rrrado20-Oct-08 22:29
rrrado20-Oct-08 22:29 
GeneralRe: Write to console Pin
David Crow21-Oct-08 3:01
David Crow21-Oct-08 3:01 
GeneralRe: Write to console Pin
rrrado21-Oct-08 4:19
rrrado21-Oct-08 4:19 
QuestionAllocate more than 2GB using VirtualAlloc or new Pin
umarcool20-Oct-08 5:39
umarcool20-Oct-08 5:39 
AnswerRe: Allocate more than 2GB using VirtualAlloc or new Pin
David Crow20-Oct-08 7:32
David Crow20-Oct-08 7:32 
AnswerRe: Allocate more than 2GB using VirtualAlloc or new Pin
Cedric Moonen20-Oct-08 8:35
Cedric Moonen20-Oct-08 8:35 
GeneralRe: Allocate more than 2GB using VirtualAlloc or new Pin
umarcool21-Oct-08 0:17
umarcool21-Oct-08 0:17 
QuestionRegarding Auto Logon Pin
H4u3220-Oct-08 5:12
H4u3220-Oct-08 5:12 
AnswerRe: Regarding Auto Logon Pin
David Crow20-Oct-08 7:35
David Crow20-Oct-08 7:35 
QuestionHow to use a smoothing algorithm Pin
Abhijit D. Babar20-Oct-08 4:50
Abhijit D. Babar20-Oct-08 4:50 
AnswerRe: How to use a smoothing algorithm Pin
Matthew Faithfull20-Oct-08 5:16
Matthew Faithfull20-Oct-08 5:16 
Questionshortcut key create in mfc Pin
mathy20-Oct-08 4:10
mathy20-Oct-08 4:10 
AnswerRe: shortcut key create in mfc Pin
Alan Balkany20-Oct-08 4:24
Alan Balkany20-Oct-08 4:24 
GeneralRe: shortcut key create in mfc Pin
mathy20-Oct-08 23:41
mathy20-Oct-08 23:41 

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.