|
I have an application which minimises to tray on start-up. I achieved this by a call to <pre>OnSysCommand(SC_MINIMIZE, 0);</pre> by posting a message in <pre>OnInitDialog()</pre>. But the dialog appears for a fraction of a second. In order to avoid the flicker I used the below code from CP. But it does not work as expected.
I found that when the "m_bFirstShowWindow = false" is commented out the window is not showing up and works as expected. But in that case I could not restore the window from the Tray. What is wrong in my logic?
I am using VS2005
<pre>
void CTestDlg::OnWindowPosChanging ( WINDOWPOS* lpwndpos )
{
CDialog::OnWindowPosChanging(lpwndpos);
if ( lpwndpos->flags & SWP_SHOWWINDOW )
{
if ( m_bFirstShowWindow )
{
m_bFirstShowWindow = false;
lpwndpos->flags &= ~SWP_SHOWWINDOW;
}
}
}</pre>
|
|
|
|
|
uncheck the visible property in the dialog properties
|
|
|
|
|
it works !!
But can you just explain what is being done in the code . Just for the academic interests ... I am new to VC.
|
|
|
|
|
The value for the Visible gets changed in .rc file. Check the dialog properties in the .rc file.
|
|
|
|
|
Its giving undeclared identifier for m_bFirstShowWindow
What am I missing???
|
|
|
|
|
Hey Friends
In a MDI application with CFormView derived view, i have a small Resource Template, so i need to resize main application to fit the size of the Child Frame.
Any idea how to do that ? or i have to resize the CMainFrame by calculating toolbar height / width + status bar height / width etc?
Regards
|
|
|
|
|
I have created one MFC application which uses Windows media player SDK for playing audio files.How can we set default visualization even if there is no visualization set for the media player.Please help me.
|
|
|
|
|
Hi
Though I have been programming on other platforms for a while, I am a newcomer to Windows development.
I have been given a 3rd Party library, and I am unsure of how ti use it with Visual Studio.
I have a created a project and pointed it towards the provided headers and library, and if I include the main .h file, the project compiles. So far so good. But what do I do with the provided .rc file?
If I import it and do a:
enum { IDD = IDD_MY_DIALOG };
I get an error. I can fix this by copying and pasting the dialog from the 3rd party .rc into my projects rc file - is that the right thing to do? That doesn't seem right...
Also I am not sure how to use the classes in the library, as trying to use them gives me a error that the class is abstract.
Thanks.
|
|
|
|
|
What is this third party library supposed to do ? Because it seems really strange that you have to include a .rc file
|
|
|
|
|
It's an audio capture tool. It has a number of dialogs to make changes to settings.
I've found that they included a mylibresource.h file, including that has got things working. But I am still confused why I am getting abstract errors when the classes in the library are not defined as abstract.
|
|
|
|
|
What are the exact errors you are getting?
1300 calories of pure beef goodness can't be wrong!
|
|
|
|
|
hey ,
i have a small application scripted on fortran 77 ,
i need to get a free compiler on windows XP plateform ,which compiles files .f not .for
thanks in advance
|
|
|
|
|
|
Can u plz guide me , where can i post this question?
|
|
|
|
|
g77. You can get it as part of the MinGW suite[^].
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
i download it but it compiles only the .for files
and my application is in .f
i renamed the extension , and it catastrophic 178 erros and it dosen't work
what do you propose ?
|
|
|
|
|
.for, .f - the extension really shouldn't matter.
I've got an application which consists of .f files and g77 builds it fine. If you want help, can I suggest you give a little more information like what errors you're seeing?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
its a real pain the errors .
if your application is small , can u send it ?
i will try to compile it , and sse the result
|
|
|
|
|
kewl.jad wrote: if your application is small , can u send it ?
It's not small and also it's not code I can share (proprietary company data).
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
man i am really sick of this program can't compile it , run it or test it's a application coded on fortran 77.
i have the source code , what do you propose to run it ?
btw i downloaded from the link that you gave me the GNU stuff it dosen't work its a .gz application
|
|
|
|
|
kewl.jad wrote: btw i downloaded from the link that you gave me the GNU stuff it dosen't work its a .gz application
Hmmm - strangely, I followed the instructions on that page and got a fully working MinGW installation. Download the installer executable @ http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/MinGW%205.1.4/MinGW-5.1.4.exe/download[^]. Run it and it downloads and installs the necessary installation packages. Pretty straight forward.
kewl.jad wrote: i have the source code , what do you propose to run it ?
I've given you many suggestions. You've fed back nothing except 'it doesn't work' with no information about errors etc. You're on your own.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
|
i have added 5 items to my dropdown combobox but only one item is showing..wat can be the problem?
|
|
|
|
|
Open the dialog template on which the combo box is dropped.
Click on the button with the arrow pointing down.
Now adjust the size of the combo box by dragging with the mouse.
Or
Use CComboBox::SetMinVisibleItems[^]
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
thanks sooperman problem solved
|
|
|
|