Click here to Skip to main content
15,917,568 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Problem in using TCHAR Pin
Gary R. Wheeler28-Dec-05 6:43
Gary R. Wheeler28-Dec-05 6:43 
GeneralRe: Gr8, Now working fine. Thanks for all. :) Pin
G Haranadh28-Dec-05 7:05
G Haranadh28-Dec-05 7:05 
Questionfading a dialogbox in Pin
_kane_27-Dec-05 20:19
_kane_27-Dec-05 20:19 
AnswerRe: fading a dialogbox in Pin
Owner drawn27-Dec-05 20:38
Owner drawn27-Dec-05 20:38 
GeneralRe: fading a dialogbox in Pin
_kane_27-Dec-05 23:36
_kane_27-Dec-05 23:36 
GeneralRe: fading a dialogbox in Pin
vikas amin27-Dec-05 23:48
vikas amin27-Dec-05 23:48 
GeneralRe: fading a dialogbox in Pin
Owner drawn27-Dec-05 23:51
Owner drawn27-Dec-05 23:51 
GeneralRe: fading a dialogbox in Pin
_kane_28-Dec-05 0:42
_kane_28-Dec-05 0:42 
well, if you are meaning something like this :

CMyDialog *dlg;

dlg=new CMyDialog;
dlg->Create(IDD_MAINDIALOG,NULL);

then
dlg->AnimateWindow() is not a member. Its a member of CWnd.

On the other hand, I had a look at Shog9 's code at http://www.codeproject.com/miscctrl/balloonhelp.asp[^] and did the following:

made the following addition in my .h file :
private:<br />
	typedef BOOL (WINAPI* FN_ANIMATE_WINDOW)(HWND,DWORD,DWORD);<br />
   FN_ANIMATE_WINDOW m_fnAnimateWindow;


made the edition in the default constructor as :

CMyDialog::CMyDialog(CWnd* pParent /*=NULL*/)<br />
: CDialog(CMyDialog::IDD, pParent),m_fnAnimateWindow(NULL)


and changed the WM_SHOW like this :

void CMyDialog::OnShowWindow(BOOL bShow, UINT nStatus) <br />
{<br />
	 if ( NULL != m_fnAnimateWindow )<br />
   {<br />
      <br />
         m_fnAnimateWindow( m_hWnd, 200, AW_BLEND);<br />
     <br />
   }<br />
}



now I get no compiler errors, the window shows, but no animation Cry | :((




"Some guys hack just to get themselves a girlfriend.What a pathetic reason huh ?"
NewsRe: fading a dialogbox in Pin
_kane_28-Dec-05 1:02
_kane_28-Dec-05 1:02 
GeneralRe: fading a dialogbox in Pin
Owner drawn28-Dec-05 16:37
Owner drawn28-Dec-05 16:37 
AnswerRe: fading a dialogbox in Pin
ThatsAlok28-Dec-05 0:34
ThatsAlok28-Dec-05 0:34 
AnswerRe: fading a dialogbox in Pin
ThatsAlok28-Dec-05 0:39
ThatsAlok28-Dec-05 0:39 
AnswerRe: fading a dialogbox in Pin
BlackDice28-Dec-05 10:20
BlackDice28-Dec-05 10:20 
QuestionSmart Device project problem Pin
LiYS27-Dec-05 20:06
LiYS27-Dec-05 20:06 
AnswerRe: Smart Device project problem Pin
Prakash Nadar27-Dec-05 21:22
Prakash Nadar27-Dec-05 21:22 
GeneralRe: Smart Device project problem Pin
LiYS27-Dec-05 22:00
LiYS27-Dec-05 22:00 
AnswerRe: Smart Device project problem Pin
Owner drawn27-Dec-05 23:02
Owner drawn27-Dec-05 23:02 
AnswerRe: Smart Device project problem Pin
sunit527-Dec-05 23:09
sunit527-Dec-05 23:09 
AnswerRe: Smart Device project problem Pin
vikas amin27-Dec-05 23:46
vikas amin27-Dec-05 23:46 
QuestionUnloading a DLL Pin
Jagadeesh VN27-Dec-05 19:53
Jagadeesh VN27-Dec-05 19:53 
AnswerRe: Unloading a DLL Pin
Prakash Nadar27-Dec-05 21:28
Prakash Nadar27-Dec-05 21:28 
QuestionReparse points Pin
kmr.girish27-Dec-05 19:47
kmr.girish27-Dec-05 19:47 
QuestionHow to include my lib file in the vc++.net 7.0 environment Pin
G Haranadh27-Dec-05 19:09
G Haranadh27-Dec-05 19:09 
AnswerRe: How to include my lib file in the vc++.net 7.0 environment Pin
Owner drawn27-Dec-05 19:13
Owner drawn27-Dec-05 19:13 
GeneralRe: How to include my lib file in the vc++.net 7.0 environment Pin
G Haranadh27-Dec-05 19:24
G Haranadh27-Dec-05 19:24 

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.