|
You need to add the minimize box in the Resource Editor...
Then you must to use CWnd::SetWindowPlacement...
Best Regards
Carlos Antollini.
Sonork ID 100.10529 cantollini
|
|
|
|
|
First Dialog Must Support Minimize Button..
and this will do it.
AfxGetApp()->m_pMainWnd->ShowWindow(SW_MINIMIZE);
Rememder m_pMainWnd is the Main Window..
or
this->ShowWindow(SW_MINIMIZE);
Gaurika Wijeratne..
www.gaurika.com/ gaurika@sltnet.lk
|
|
|
|
|
I am trying to find out a value from a specific column and row from a MSFlexGrid. I set the text by calling:
m_flxCompanyList.SetTextArray(GridPos(i,1),pComp->m_strRetailNum);
m_flxCompanyList.SetTextArray(GridPos(i,2),pComp->m_strCompName);
so I construct a two column list of companies and their retail numbers, what I want to do is make it so that when someone clicks on the grid i can get the value in the first column of whatever row they select.
I know how to get what position is selected, but the GetTextArray (which I would think goes along with SetTextArray) returns a long, and I can't figure out what to do with it!
I've searched msdn and these message boards and it seems not much documentation is available for this control, but im hoping someone can help out?
thanks in advance to any advice
-dz
|
|
|
|
|
I don't know a lot about MSFlexGrid, but try CString = GetTextMatrix(row,col)
|
|
|
|
|
just what i needed, thank you SOOO much!
-dz
|
|
|
|
|
I'm trying to integrate a PowerBuilder application with another application and I need to read some data from a PowerBuilder screen. It appears to be a standard dialog/view, but if you try to examine the individual controls, they are part of some custom "panel". Has anyone done anything similar to what I am trying to do and has some advice?
Thanks,
David
|
|
|
|
|
Maybe Spy++ (one of the utilities that come with Visual Studio) can help you get an idea of how those PowerBuilder windows are made up.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
I've tried Spy++ along with a customized version of something similar. The problem is the "controls" in the PowerBuilder window are not "standard" windows controls. The smallest window in one of the forms is a panel of some sort containing all of the controls. I cannot see a way to access an individual control.
|
|
|
|
|
I see... It's a pity that didn't work, I'm sorry I don't have any other idea. Good luck with your quest.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
i want to put a color palette into my app, but i don't wanna use the CColorDialog class, coz i want a static palette like the one in the famous paint...can anyone help?
Thanx in advance
|
|
|
|
|
You mean just an array of buttons with different colours on them ? Where are you stuck ?
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"I'm thinking of getting married for companionship and so I have someone to cook and clean." - Martin Marvinski, 6/3/2002
|
|
|
|
|
yeah something like that, do u kn the famuos palettes pf colors in all the editor, paint, photoshop and all this stuff...
|
|
|
|
|
Like I said, it's just a whole lot of buttons, or you can draw the colours yourself and track the mouse messages yourself if you want to.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"I'm thinking of getting married for companionship and so I have someone to cook and clean." - Martin Marvinski, 6/3/2002
|
|
|
|
|
i got it, thank you so much
doudou
|
|
|
|
|
I tried using COleDateTime::ParseDateTime(...) and VarDateFromStr(...) to parse a date/time string that contains *time zone* information (ET, CT, +4:00, GMT+4:00, etc...) but every time I do so I get "Invalid DateTime"
// code //////////////////////
COleDateTime dt;
CString sdate = "Feb 1 2002 17:05 +7:00"; // <- Time Zone string date
dt.ParseDateTime(sdate);
CString st2 = dt.Format("%H:%M"); // <- returns 'Invalid DateTime'
// -----------------------------
Is it just me (am I doing this wrong) or the
ParseDateTime is no good for time zones?
Is there any other way/method that could parse string
with time zone information (like: "Feb 1 2002 17:05 +7:00").
JScript and VC#.NET have no problem parsing date/time strings with time zone info, but I can't seem to parse date/time string in VC++.
Platform: WinXP Pro, VC++.NET (unmanaged)
Thanks in advance
Mike
|
|
|
|
|
I'd like to show my codes while they are running. I wrote a macro for this perpose:
#define RUN_TRACE(instr) instr;TRACE("%s\n","instr");
But "instr" instead of my code was the result, and the macro below did not work either:
#define RUN_TRACE(instr) instr;TRACE("%s\n", instr);
This macro insist using the result of my code as the input to TRACE instead of the code itself.
Is there any compiler switch to control whether to replace the argument between quotion pare in macro definetion? I'll be very grateful if you can give me any help.
Tiny Flying Elephant loves flying...
|
|
|
|
|
This sould work (I think):
#define RUN_TRACE(instr) instr;TRACE("%s\n", #instr);
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
That works. Thanks a lot.
Tiny Flying Elephant
I love flying...
|
|
|
|
|
Hi
I created an ATL project in VC7, and chose to have it as a Service exe. I register it as a service (myservice.exe /service), and try to start it using the Service Control Manager. The SCM tells me it cannot start the service, and no error was returned.
I didn't touch a single piece of code. Why in hell can't a wizard produce code that works out of the box???
Btw, I have written some services in ATL 3.0 and didn't have any problem starting them
Tx
Michel
If I am wrong or said something stupid, I apologize in advance
|
|
|
|
|
I found the problem, and I will tell it here for the sake of sharing the knowledge.
When you create an ATL 7.0 Service, the CAtlExeModuleT::RegisterClassObjects method returns S_FALSE if there is no object to register. And in CAtlServiceModuleT::Run method, there is a line that says:
if (hr == S_OK) {
...
}
I overrode the Run function, and replaced the line by:
if (SUCCEEDED(hr)) {
...
}
and everything works fine.
Tx.
Michel
If I am wrong or said something stupid, I apologize in advance
|
|
|
|
|
Michou wrote:
if (hr == S_OK) {
instead of
Michou wrote:
if (SUCCEEDED(hr)) {
What
This is a f***ing beginner mistake , i don't f***ing believe that this was done on ATL 7 framework ! The guys have been doing serious drinking ...
Another stupid bug in a good framework !!!
Joao Vaz
|
|
|
|
|
How to hide a given column in a CListCtrl ?
thanx
|
|
|
|
|
You may try to set the column width to zero with a call to CListCtrl::SetColumnWidth. Note that users will be able to drag header dividers to make the column visible.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Thanx
|
|
|
|
|
Someone know how we can in MFC/Visual C++, send to the internet explorer a function made in javascript or dhtml to run in the browser ?
I want to make a button in MFC that send do the internet explorer (maby chtmlview) a function made in javascript, dhtml or asp.
Thanks
|
|
|
|