Click here to Skip to main content
15,891,607 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionwriting a wave file to currecnt directory from buffer Pin
Member 87012356-Apr-12 4:32
Member 87012356-Apr-12 4:32 
AnswerRe: writing a wave file to currecnt directory from buffer Pin
David Crow6-Apr-12 4:37
David Crow6-Apr-12 4:37 
GeneralRe: writing a wave file to currecnt directory from buffer Pin
Member 87012358-Apr-12 21:11
Member 87012358-Apr-12 21:11 
QuestionLoad image from Open Dialog Pin
sadas232341s6-Apr-12 3:36
sadas232341s6-Apr-12 3:36 
QuestionRe: Load image from Open Dialog Pin
David Crow6-Apr-12 3:53
David Crow6-Apr-12 3:53 
QuestionDate Time Picker Strange Behavior in Windows 7 Pin
softwaremonkey5-Apr-12 20:57
softwaremonkey5-Apr-12 20:57 
GeneralRe: Date Time Picker Strange Behavior in Windows 7 Pin
David Crow6-Apr-12 2:41
David Crow6-Apr-12 2:41 
QuestionUnable To Tackle MoveWindow() Pin
AmbiguousName5-Apr-12 19:51
AmbiguousName5-Apr-12 19:51 
hello guys... plz first consider this code.
<pre lang="c++">
void CMoveWindowDlg::MoveMyWindow()
{
CWnd* wind = GetDlgItem(IDC_UPDOWN); // Current button to which: this event handler is bound
ASSERT(wind!= NULL);
wind->GetWindowRect(&rect);

r.top = rect.top;
r.left = rect.left;
r.right = rect.right;
r.bottom = rect.bottom;

int height = rect.Height();
int width = rect.Width();
wind->MoveWindow(100, 100, width, height, 1);
}
</pre>
<b>1 - </b> Here I get the location and size in two things - <b>RECT r</b>, <b>CRect rect</b>. When I click on this button, it takes my button to the specified point. The problem is: if there is some other control already at that point like EditBox, this button will not work and the EditBox will come on top of it.
<b>2 -</b> I use another button to place this button back on the previous location by providing the location which I stored in <b>Rect r</b>, like this..
<pre lang="c++">GetDlgItem(IDC_UPDOWN)->MoveWindow(&r,1);</pre>
But unfortunately, this also does not place the buttun at its original place.

Problems are specified so whats wrong with this code?
AnswerRe: Unable To Tackle MoveWindow() Pin
Code-o-mat6-Apr-12 2:16
Code-o-mat6-Apr-12 2:16 
QuestionWhy C++ Instead of C? Pin
pix_programmer5-Apr-12 19:43
pix_programmer5-Apr-12 19:43 
AnswerRe: Why C++ Instead of C? Pin
AmbiguousName5-Apr-12 20:46
AmbiguousName5-Apr-12 20:46 
GeneralRe: Why C++ Instead of C? Pin
pix_programmer5-Apr-12 21:09
pix_programmer5-Apr-12 21:09 
GeneralRe: Why C++ Instead of C? Pin
AmbiguousName5-Apr-12 21:47
AmbiguousName5-Apr-12 21:47 
GeneralRe: Why C++ Instead of C? Pin
CPallini6-Apr-12 2:03
mveCPallini6-Apr-12 2:03 
GeneralRe: Why C++ Instead of C? Pin
AmbiguousName6-Apr-12 2:28
AmbiguousName6-Apr-12 2:28 
GeneralRe: Why C++ Instead of C? Pin
CPallini6-Apr-12 2:36
mveCPallini6-Apr-12 2:36 
AnswerRe: Why C++ Instead of C? Pin
softwaremonkey5-Apr-12 21:22
softwaremonkey5-Apr-12 21:22 
AnswerRe: Why C++ Instead of C? Pin
CPallini5-Apr-12 21:36
mveCPallini5-Apr-12 21:36 
GeneralRe: Why C++ Instead of C? Pin
Erudite_Eric6-Apr-12 6:27
Erudite_Eric6-Apr-12 6:27 
GeneralRe: Why C++ Instead of C? Pin
Stefan_Lang17-Apr-12 2:34
Stefan_Lang17-Apr-12 2:34 
GeneralRe: Why C++ Instead of C? Pin
CPallini17-Apr-12 3:10
mveCPallini17-Apr-12 3:10 
AnswerRe: Why C++ Instead of C? Pin
Chris Losinger6-Apr-12 1:33
professionalChris Losinger6-Apr-12 1:33 
AnswerRe: Why C++ Instead of C? Pin
Member 19886-Apr-12 22:49
Member 19886-Apr-12 22:49 
AnswerRe: Why C++ Instead of C? Pin
jschell7-Apr-12 6:37
jschell7-Apr-12 6:37 
QuestionGraphic problem Pin
Brijesh_kumar5-Apr-12 7:58
Brijesh_kumar5-Apr-12 7:58 

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.