|
Hi,
How to register a window of Dialog Based Application?
|
|
|
|
|
|
U can do the registration in 'InitInstance' method of Application derived class(before 'DoModal' of the main dialog)
WNDCLASS wc = {0};
wc.style = CS_BYTEALIGNWINDOW|CS_SAVEBITS|CS_DBLCLKS;
wc.lpfnWndProc = DefDlgProc;
wc.cbWndExtra = DLGWINDOWEXTRA;
wc.hInstance = m_hInstance;
wc.hIcon = LoadIcon(IDR_MAINFRAME);
wc.hCursor = ::LoadCursor(NULL, IDC_ARROW);
wc.hbrBackground = CreateSolidBrush(GetSysColor(COLOR_BTNFACE));
wc.lpszClassName = <Specify the class name here as well as in .rc>
ATOM cls = RegisterClass(&wc);
|
|
|
|
|
i need help for code for fast algorithm to compute Walsh Hadamard coefficient
|
|
|
|
|
What is your trouble with?
What have you done, so far?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
i have problem in calculation of value
w(k+1,b)=(w(k,b)+w(k+1,2b),w(k,b),w(k+1,2b))
how i write this in C
|
|
|
|
|
ahmedbhatti wrote: w(k+1,b)=(w(k,b)+w(k+1,2b),w(k,b),w(k+1,2b))
It strongly depends on the meaning of such expression, I suppose...
I.e. what is w(k,b) ? What is (w(..),w(..),w(..)) ?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Assalamo 3aliko
I need c++ program for OFDM techniques in WIMAX system
pleas if any one have it send it for me
thanks a lot
|
|
|
|
|
rent-a-coder looks like a viable solution.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
How to execute inf files from C++ code. My Device Driver are having .inf file with some other file. I want to execute inf file for installing Device Driver.
|
|
|
|
|
See ShellExecute[^] with 'verb' set to 'open'
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
You can execute a particular section in an INF file using the InstallHinfSection function.
See the documentation of InstallHinfSection[^] for more information.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Hello to all,
In my project I am uploading some data on to the internet.After data uploading gets completed without any problem then one modal dialog box appears showing the text "Uploaded Successfully" (I am invoking that dialog box through "AfxMessageBox"). Now I want to play one "avi" file on to that dialog box or I want to show some moving image on to that dialog box. So anyone knows how to do it? anyone knows how to play "avi" file on modal dialog box? its really urgent so plz help me out.
Thanks and Regards,
Anay
|
|
|
|
|
|
For show avi files you can see Nuri Ismail's answer although you can use of MCI functions,for moving images you can make a timer and then you can move images.
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
hai friend's
I want to Communicate with Ms Access using MFC Application , I don't Know Ms Access...
But Am Working in SQL with MFC
Please Help Me How to Insert ,Delete ,Update in Ms access...give some code plz thank u... Regard'sMathy's
|
|
|
|
|
|
|
Hi All
Can i set or use Check box on messageBox?Plz advice me
|
|
|
|
|
|
Hi,
How can send a message to a running application from another running application.
I tried with FindWindow(), to find the window and PostMessage() to it.
But somtimes FindWindow() is not able to figure out the desired window.
I think I have to use the registred class name instead of Window Name...
So please tell me how to do that..
My app is SDI(VS 2003). And window registration code is
<br />
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)<br />
{<br />
if( !CFrameWnd::PreCreateWindow(cs) )<br />
return FALSE;<br />
<br />
cs.dwExStyle &= ~WS_EX_CLIENTEDGE;<br />
cs.lpszClass = AfxRegisterWndClass(NULL,NULL,NULL,AfxGetApp()->LoadIcon(IDR_MAINFRAME));<br />
cs.style |= WS_CLIPCHILDREN|WS_CLIPSIBLINGS;<br />
return TRUE;<br />
}<br />
<br />
But the AfxRegisterWndClass() return a window name that is like afx:0000:50000......
Is there any way to register the window with user defind name so that I can use this name with FindWindow().
|
|
|
|
|
You can use of EnumWindows it gives you a handle to each window and then you can use of ::SendMessage(hwnd,....);
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
If you are programming both applications, I recommend using named events.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
I'm working on a standard Windows SDI application (with menu, toolbar etc.) written using the API ie. no MFC. Currently it has a quirk (though one shared by apps such as Visual Studio and UEStudio). Namely, if I run through the following steps...
1. Open a modal dialog box
2. Then activate another open application by clicking on its icon in the taskbar
3. Click anywhere in that app's window
4. Click on the taskbar icon for my application
... the modal dialog box appears but over the against the background of the other application. It's only when I close the dialog box that my application window re-appears. Any ideas?
Thanks in advance.
modified on Saturday, May 9, 2009 2:17 AM
|
|
|
|
|
I can't say that I see that behaviour (I followed your repro steps with Visual Studio and a couple of other apps). I would tend to say that if VS is acting like that, then your system's setup isn't quite right.
Also - if your app is acting like VS, it can't be doing too much wrong?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|