|
Shin-Ra wrote: But god i'm just tired of finding MFC and no C ones.
So why not just look at what MFC is doing? You'll notice a lot of EM_xxx messages are actually being sent.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Shin-Ra wrote: So with my lack of knowledge I wouldn't be able to read and do it
If you don't know the basics of sending messages to windows then that's the topic of articles you
should be reading. This is the core of Windows UI programming. You'll need to know it
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
plz Help me...
when i use "EnumPrinterDataEx" function in my program, it returns 1018 value.and this function does not work exactly.can any on tell to me what is meaning of 1018 return value.
Thanks
Monica
|
|
|
|
|
mo_nica881 wrote: can any on tell to me what is meaning of 1018 return value.
Its stated as Illegal operation attempted on a registry key that has been marked for deletion. (use Tools-->Error Lookup to see description of win32 errors).
|
|
|
|
|
You can use FormatMessage to see the description of the error, as in the following code excerpt (from MSDN)
LPVOID lpMsgBuf;
FormatMessage(
FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_FROM_SYSTEM |
FORMAT_MESSAGE_IGNORE_INSERTS,
NULL,
GetLastError(),
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
(LPTSTR) &lpMsgBuf,
0,
NULL
);
MessageBox( NULL, (LPCTSTR)lpMsgBuf, "Error", MB_OK | MB_ICONINFORMATION );
LocalFree( lpMsgBuf );
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.
|
|
|
|
|
Thanks. i resolve my problem.
Monica
|
|
|
|
|
I am working on creating a drop down combo box if user clicks on a column in a list control. I have got one document in the link: http://www.codeproject.com/listctrl/CustomizedReportListCtrl.asp
But the problem is CBS_DROPDOWNLIST style has been used in that combo list. But I want to make that combo box editable. CBS_DROPDOWN is not working. Could anyone tell me how to do that?
|
|
|
|
|
Aryan S wrote: I have got one document in the link: http://www.codeproject.com/listctrl/CustomizedReportListCtrl.asp
That article message board is better place to ask this question.
Aryan S wrote: But I want to make that combo box editable. CBS_DROPDOWN is not working.
You need to be very clear instead of saying "not working", while asking there ,too.
|
|
|
|
|
Aryan S wrote: http://www.codeproject.com/listctrl/CustomizedReportListCtrl.asp
You should ask the person who wrote this article. He knows better.
|
|
|
|
|
Hi, I have a CToolbar and somehow managed to cause the buttons in the toolbar to not have a box drawn around them when the user's mouse is positioned over them. Is there an easy way to get this behavior back?
I don't know how I managed to remove this behavior, that's why I have no idea how to put it back in.
Thanks,
Max
|
|
|
|
|
maxmaven wrote: I don't know how I managed to remove this behavior
Try this style TBSTYLE_FLAT.
|
|
|
|
|
I already have this style.
I think I know more about what the problem is now: My buttons are *disabled*. Is there a way in the toolbar editor to set a button to be enabled?
Max
|
|
|
|
|
I see what is going on! If I do not assign the button an ID like "ID_APP_ABOUT", the button is disabled. It looks like the ID must match one of the symbols in the resource symbols list. I have two more questions about this:
How do I make a new symbol, should I be using a wizard?
How do I add an entry to the message map? (use a wizard?)
By this, I mean the list below
BEGIN_MESSAGE_MAP(MyApp, CWinApp)
ON_COMMAND(ID_APP_ABOUT, &MyApp::OnAppAbout)
// Standard file based document commands
ON_COMMAND(ID_FILE_NEW, &CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN, &CWinApp::OnFileOpen)
// Standard print setup command
ON_COMMAND(ID_FILE_PRINT_SETUP, &CWinApp::OnFilePrintSetup)
END_MESSAGE_MAP()
|
|
|
|
|
Thank you kindly for your help. I just noticed I have an entire chapter on message maps in the MFC book I bought. I will learn by reading this chapter.
Once again, thank you!
Max
|
|
|
|
|
Hi everybody,
i still have a problem with the redraw of controls.
The Return-Key on a Grid provokes a switch of the view in the current Tab(of the TabControl)
The new view will be created, drawn, all ok.
I switch to another application (firefox for example) then i return to my application and the Grid is invisible. Sizing the frame provokes a OnSize and the all controls will be redrawn, the grid is already visible(drawn)
Now, i removed the Line "Grid->RedrawWindow(...);" from out the OnEraseBgnd-Handler.
The problem is solved, but now i have the initial problem :
At creation, the grid will be created and correctly drawn, then if a Thread has extracted all informations, the grid will be filled with the data.
Just at this time, the grid disappears.
It could be a problem of the grid, but i don't think so, because i have the same effect with textboxes.
The textbox which gets the focus during initialisation, will not be drawn
Does anyone has an idea?
Big thanks
|
|
|
|
|
I search example or solution to connect to SQL Server in MFC thru internet. i use IP to connect to server.
Thanks
|
|
|
|
|
Clickety[^]
Press: 1500 to 2,200 messages in just 6 days? How's that possible sir?
Dr.Brad :Well,I just replied to everything Graus did and then argued with Negus for a bit.
|
|
|
|
|
Can you create a DSN that "points" to the SQL database?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I writed an activex in MFC, one of the methods is as follow:
<br />
.odl:<br />
[id(57)] boolean GetOneValueRange(long Address, float* pMinValue, float* pMaxValue);<br />
<br />
.h:<br />
afx_msg BOOL GetOneValueRange(long Address, float FAR* pMinValue, float FAR* pMaxValue);<br />
<br />
.cpp:<br />
BOOL CXXXXCtrl::GetOneValueRange(long Address, float FAR* pMinValue, float FAR* pMaxValue)<br />
{<br />
...<br />
}<br />
I hope this activex can be used in VB and javascript, is there any changes must made?
*(LPWORD)(pStr + lstrlen(pStr)) = ';';
|
|
|
|
|
Is there any way to find out all the code where variables of different types compared inside if() condition like if(fFloatVar == iIntVar)?
It is not listed in warning when compile.
Thanks & Regards,
Suman
|
|
|
|
|
See whether u have set warning level to "None" in ur Project Settings>>C/C++>>Warning Level.
Smile
|
|
|
|
|
I tried compiling in all four levels of warning W1 to W4 and Off(W0) but there is no warning.
Mine Microsoft Visual C++ .NET standard version 7.1
Thanks & Regards,
Suman
|
|
|
|
|
See "#pragma warning" directive if it helps u a bit. I am not sure abt it.
Smile
|
|
|
|
|
Hello all,
Is someone knows how to create a BHO objet for IE in VB.NET ? i have found some code but all are in C# or C++ and i understand anything.
What i want to do is to know where an user save a file or the full path of file in the temporary folders of internet explorer.
I have made a plug in in IE with can catch the HTML Document itself, catch the event NavigateComplete, DownloadComplete, ... ( events and methods of WebBrowser object), but i don't have the information of filename.
Can anyone help me ?
Thanks in advance.
|
|
|
|
|
If you ask it here, again you'll get them in C++. Ask it in VB.net forum.
Press: 1500 to 2,200 messages in just 6 days? How's that possible sir?
Dr.Brad :Well,I just replied to everything Graus did and then argued with Negus for a bit.
|
|
|
|