|
i'm not the one who asked the question
|
|
|
|
|
i had placed drag and drop controll(placing controll).
ddd
|
|
|
|
|
|
Is this a dialog based application? verify that you have called AfxEnableControlContainer() in your application's InitInastance Method
see this article in MSDN "ActiveX Control Containers: Manually Enabling ActiveX Control Containment"
dont forget to include "#include <Afxdisp.h>"
hope this work
Azam
|
|
|
|
|
that is called in the initinstace method. when i used other controll they aer display but specifimc microsft form control 2.0 is not displayed.
ddd
|
|
|
|
|
dear all,
as title, I tried to extract(get) icon from Dll or exe or ico,
then I put then on the window by DrawIco. It looked great.
but when I saved it to a icon file(c:\temp\xxx.ico).
It looked very worse --> blurred and ugly.
Experts, please help me , thank you very much.
Best Regard.
Bill
|
|
|
|
|
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcsample98/html/vcsmpiconpro.asp
maybe it is some helpful to you
|
|
|
|
|
Dear WhiteSky,
Thank you for your help. I used the sample program to extract Icon from Dll or exe, that's great!! Now I am tracking the source code.
B.R
Bill Lin
|
|
|
|
|
I glad that you find your answer
Have a nice day
|
|
|
|
|
|
Dear WhiteSky,
I can't thank you enough. I had used SHGetFileInfo before, but I didn't try more... . Now I know the structure of Icon by your first response and how to use windows API to get more informations from a file by this response.
B.R
Bill Lin
|
|
|
|
|
F:\Installation\VC98\INCLUDE\vector(17) : error C2143: syntax error : missing ';' before 'namespace'
i get this error message but i already checked my syntax and it is correct. what should i do to correct this error?
|
|
|
|
|
What's the line that's causing the error.
Nibu thomas
Software Developer
|
|
|
|
|
thats the only error message i recieve.
|
|
|
|
|
What I meant was paste the piece code that cause the error so that we can take a look...
Have you included vector.h
Nibu thomas
Software Developer
|
|
|
|
|
this is the file on the include folder of MSVC++(VECTOR)
#ifdef _MSC_VER
#pragma pack(push,8)
#endif /* _MSC_VER */
_STD_BEGIN <-- this is shown by the error but i believe this is not the real error
// TEMPLATE CLASS vector
template<class _ty,="" class="" _a="allocator<_Ty"> >
class vector {
i also included the header file on my source code.
|
|
|
|
|
The problem could be this...
class AClass
{
}<code>
You use it like this...
<code>#include "anincludefile.h"</code>
#include "vector" Check and see if this is the problem...
Nibu thomas
Software Developer
|
|
|
|
|
Dear MFC friends,
I have a function for a combo box control in a dialog box,
void CLassnameDlg::OnCbnSelchangeComboboxControl();
I don't know why I could not do the following when the selection in the control has changed,
1. the content within the function doesn't work;
2. I could not do "Run To Cursor" within the function;
3. I set breakpoint at the right place within the function but doesn't work.
The type of the combo box control is "Drop List". In the same dialog I have several combo box controls, some are working and some are not working.
What's wrong? Could you please tell me?
Thanks,
Joy Anne
|
|
|
|
|
Scan the Message map section to find out if the combo that you are expecting to work is correctly mapped on to the function that you expect to get called for that particular combo.
Check the ID of the combo.
Nibu thomas
Software Developer
|
|
|
|
|
Hello
I am creating a win32 console application. I wanted to show output in full screen mode. I used following code by MSDN to do it. But nothing happens after when this code runs.
HWND hwndConsole = NULL;<br />
hwndConsole = FindWindow(NULL, "test.exe");<br />
if(NULL != hwndConsole)<br />
{<br />
SetForegroundWindow(hwndConsole);<br />
ShowWindow(hwndConsole, SW_MAXIMIZE);<br />
}
Please tell me what is "test.exe". Is it output file of my project.
Thank you.
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
Aqueel wrote: Please tell me what is "test.exe". Is it output file of my project.
Thank you.
Yes you are right.
It is trying to get the handle to the console window based on it's caption. This won't work. As caption contains the full path.
Aqueel wrote: But nothing happens after when this code runs.
This is because hwndConsole is NULL.
Do the following to get it working...
TCHAR oldTitle[MAX_PATH];
GetConsoleTitle(oldTitle, MAX_PATH);
TCHAR *newTitle = _T("My new title...zx1213");
SetConsoleTitle(newTitle);
HWND hwndConsole = NULL;
hwndConsole = FindWindow(NULL, newTitle);
if(NULL != hwndConsole)
{
SetForegroundWindow(hwndConsole);
ShowWindow(hwndConsole, SW_MAXIMIZE);
}
SetConsoleTitle(oldTitle); Nibu thomas
Software Developer
|
|
|
|
|
Hello
Now i have changed the path and now code is as follows.
HWND hwndConsole ;<br />
hwndConsole = FindWindow(NULL, "C:\\temp\\myapp.exe");<br />
if (hwndConsole == NULL)<br />
cout <<"Window not found"<<endl;<br />
if(NULL != hwndConsole)<br />
{<br />
SetForegroundWindow(hwndConsole);<br />
ShowWindow(hwndConsole, SW_MAXIMIZE); }
Here myapp.exe is name of my output file. But again nothing happens.
Thank you for your help.
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
Check the sample code that I've given.
Nibu thomas
Software Developer
|
|
|
|
|
Thank you Nibu!
I used your code. It works but it only maximizes the console window. It does not open in full screen mode. Can you tell me what i have to do?
Thank you.
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
Include this piece of code in main...
keybd_event(VK_MENU,0x38,0,0);
keybd_event(VK_RETURN,0x1c,0,0);
keybd_event(VK_RETURN,0x1c,KEYEVENTF_KEYUP,0);
keybd_event(VK_MENU,0x38,KEYEVENTF_KEYUP,0);
Nibu thomas
Software Developer
|
|
|
|