|
I had used
if(m_bMinimize)
CMyDlg::ShowWindow(SW_MINIMIZE);
;
;
;
;
;
CMyDlg::ShowWindow(SW_SHOWMAXIMIZED);
This code is written in a button click of my Dialog.
The Dialog is minimised but it does not maximise again.
This is working fine in VC++ but does not working in WinCE
|
|
|
|
|
Hey I'm sorry!! CE doesn't support SW_SHOWMAXIMIZED But I think you can stil do it with ::MoveWindow instead. Move it to the size of the screen coordinates .
And always have this in your hand...
The Golden Sword^
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[ ]--
[My Current Status]
|
|
|
|
|
yes you can use MoveWindow or SetWindowPos instead this function
whitesky
|
|
|
|
|
ShowWindow(SW_MINIMIZE);
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
<br />
#define MENU_HEIGHT 26<br />
RECT rc;<br />
<br />
GetWindowRect(hWnd, &rc);<br />
<br />
SHFullScreen(hWnd, SHFS_HIDETASKBAR | SHFS_HIDESIPBUTTON);<br />
ShowWindow(hwndCB, SW_HIDE);<br />
<br />
MoveWindow(hWnd, <br />
rc.left, <br />
rc.top-MENU_HEIGHT, <br />
rc.right, <br />
rc.bottom+MENU_HEIGHT, <br />
TRUE); <br />
Click Here for more^ Enjoy!
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[ ]--
[My Current Status]
|
|
|
|
|
how can we send data from main dialog to child dialog.
in my main dialog i have a world map when we point out particular country then the chil window should open just like tooltips in that we must show the current time of that country.when we point the coutry child window is coming but in that time not coming.
i find that timer is taking windows co-ordinates.
so please help,urgent.
sree.
|
|
|
|
|
As far as sending data is concerned you can try this method.
Supposing you have two classes A and B with the dialogs.Then you want to pass values from A to B.
So declare a pointer of class A in B
A *a;
Now in class A : -(where you are calling the second/child dialog)
B *b=new B();
b->a=this;
b->DoModal();
Now in class B you can access values of A using this "a" pointer.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
-- modified at 4:48 Wednesday 14th June, 2006
|
|
|
|
|
thank u very much.
i get a is not a member of B class
|
|
|
|
|
Did you include the header file?
#include "A.h"
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
|
sree_as wrote: time not coming.
i find that timer is taking windows co-ordinates.
So what you are saying is that the value displayed is wrong then? If so, you may need to check the code that calculates the time.
|
|
|
|
|
what i mean is i get the points regarding the maoindialog box to locate the country.but when i wnat to compare this points to set the time in child dialog. i keep getcursorpos(point);in that iam getting points wrt to window .
so they both r not equal so that time is not dispalyed
|
|
|
|
|
Main Class is CMain and one child dialog CLocal now you declare this code in child dialogCMain* m_Main = (CMain* )GetParent(); and ues m_Main->(variable)(function)... in main dialog maybe it is some helpful to you
whitesky
|
|
|
|
|
|
it doesnt work or you get an error?
whitesky
|
|
|
|
|
i got an error,
main is not a memeber of CLocal.
sree
|
|
|
|
|
Can you show how to use this code in your program
whitesky
|
|
|
|
|
Hi,
I am drawing chart using Excel.I have to plot date and time parameter on x-axis.When the chart is plotted it's plotted with respective to date only(i.e it clubed all the values of single date with different times in one date).
Can any one help me out? Thanks in advance
Mike
|
|
|
|
|
how do i display a dword value in afxmessagebox??or is it not possible?
|
|
|
|
|
<br />
DWORD d=10;<br />
CString str;<br />
str.Format("%d",d);<br />
AfxMessageBox(str);<br />
whitesky
|
|
|
|
|
hey thanks!
dat worked!
wil dat also work for void*??
|
|
|
|
|
|
Hey dont get Buzzed by 'DWORD' ,
DWORD = unsigned long
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[ ]--
[My Current Status]
|
|
|
|
|
shuchigo_jane wrote:
how do i display a dword value in afxmessagebox??or is it not possible?
is wsprintf or CString::Format is of any help?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
brother, please come on, read the other answers before replying
this has already been suggested 1/2h ago
nothing against you dear, but don't give that newbies the feeling that they can do things like that too...
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|