|
Yes it is right u need JRE1.3.1 and perl 8.5 to make this SDK work , it is also right that to run the examples come with this SDK , need some command line work to convert in visual c++ workspace.
no dought help is very poor ,code generated by appwizard is difficult to understand but above all these things it is only choice if u use C++,i seen features in Borland Mobile Studio , it has minimum support for C++ ,what it does provide all SDK under one hood , some wizards but ultimately u will have to use same SDK.(no Form builder )
so what a c++ guy can do either migrate to J2ME , or stay with it.
One important thing u have bundle of c++ code , which u might convert to run on mobile devices , what would u do with that translate all that in java.
so no way i can migrate to jave cauz i dont have much time , can u suggest some third option like new Mobile WebServices in .NET 2003 as i have only heared about it.or some other better solutions.thanx
Atif Mushtaq
No Worries!
|
|
|
|
|
How I can click button 1 then bitmap 1 will appear.
|
|
|
|
|
A bitmap, in order to be displayed, requires a device context to which it is copied. This device context can be any window, such as a new window, a static control, heck, even a cell in a list control.
Thus, on the click handler, you must load the bitmap from a resource or a file, then create a memory-based DC and blit the bitmap into the target context.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
Are you has any simple example to show me.
Thanks
|
|
|
|
|
How can I get handle to the CScrollBar which is created automatically when I insert enough items to my report-view?
|
|
|
|
|
The CListCtrl is responsible for upkeeping and drawing it's scroll bar. The control itself handles the messages and drawing related to this window item, that is, there is no external control embedded. Or, at least none that I know of. You could use Spy++ to see if you can attach to the scroll bar itself on the control. If you can, then it exists, if you can't, then it's embedded.
What is it that you'd need to accomplish using the handle ? To scroll the control ? To draw it yourself ?
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
I Checked the control with spy++ and yeah, I'm not able to attach to it..
It seems that my whole approach for the problem was completely wrong. Perhaps I tried to do things too comlicated, since the actual problem is that I wan't to know when the scrollbar is created and when its destroyed, so that I can do something interesting..
Now I wrote a message handler for WM_PARENTNOTIFY thinking that also the creation of the scrollbar would cause this message to be sent to my custom-control.. but it seems that it is not sent in such cases.
What would be a better approach?
-Jussi
|
|
|
|
|
JussiL wrote:
What would be a better approach?
Can't say, until you describe what you're actually trying to accomplish.
---
the work, which will become a new genre unto itself, will be called...
|
|
|
|
|
To determine if the window has a scrollbar(s) you can check it's style and look for WS_HSCROLL & WS_VSCROLL. I don't think there is a notification message for the scrollbar create/destroy event, but
monitoring all the messages that might cause it should help. WM_SIZE (list view), , WM_NOTIFY: LVN_INSERTITEM, LVN_DELETEITEM (listview parent), HDN_BEGINTRACKA, HDN_BEGINTRACKA (listview).
Edward
|
|
|
|
|
This solution turned out to be the best for me! Since now I just check the style when inserting or deleting items from the listview (this is enough in my case) like this:
<br />
if ( (GetStyle() & WS_HSCROLL) != 0 ) doMyStuff();<br />
Thanks!
-Jussi
|
|
|
|
|
The best approach by far is to derive a custom control from CListCtrl, then add a CSrollBar member to it and manually create and destroy it as necessary. This allows complete control on how the scroll bar works, but if you are unfamiliar with custom control creation, it might prove somewhat difficult.
There is an article available in CodeProject that discusses a list control with it's scroll bars removed. By looking at it's code, you might find some tips or clues on how to implement your solution. Lars Werner's article Hide scrollbars from a CListCtrl[^].
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
Hey
i have a problem to display a window in a dll. If I call the dll from Visual Basic I can see the window.
If I do this inside an asp page the window is unvisible
What is to do?
Frank from Bali
|
|
|
|
|
Hi,
I've suppose that you using WSH scripting on client side to work with dll.
If yes, then use SetAllowUI(True) to enable your windows.
Vitali
http://www.creative-case.com
|
|
|
|
|
Hallo
I'm not using WSH, but pure ASP.
The problem is I need to communicate with an IE to do same rendering and make a gif of this
Regards
Frank
|
|
|
|
|
Rather than creating a window from a server service process (which probably does not have the Allow Interaction With Desktop flag set), you should just create a memory DC, do all of your drawing onto the memory DC, then get the bitmap from the DC. Then, you can convert the bitmap to jpeg, gif, etc.
If you need some sample code to do this, I could provide it to you. Just send me an email at jeff@webogy.com.
onwards and upwards...
|
|
|
|
|
I am using code that I have found from around the web that shows a
Balloon Tip on any Tray Icon, but I can't seem to get the timeout
working correctly. No matter what I set the uTimeout parameter to
it doesn't close. Am I missing something?
Here is the code that I am using to display the Balloon Tip.
m_TrayData.uTimeout = uTimeout;
m_TrayData.dwInfoFlags = dwInfoFlags;
m_TrayData.uFlags = NIF_INFO;
strcpy(m_TrayData.szInfo, szMsg ? szMsg : _T(""));
strcpy(m_TrayData.szInfoTitle, szTitle ? szTitle : _T(""));
return Shell_NotifyIcon(NIM_MODIFY, &m_TrayData);
Any help would be great.
Thanks.
|
|
|
|
|
There are a couple of bits that semi-jump out from the docs. Are you setting uTimeout between
10s and 30s? Are you setting the cbSize parameter to the right value? If you've got it set to
an older size, then some features won't work properly.
Iain.
|
|
|
|
|
I think that I am doing this all correctly. I am setting timeout to 15000 which should be 15 seconds. Also here is how I am setting the size parameter.
m_TrayIcon.cbSize = sizeof(NOTIFYICONDATA);
m_TrayIcon.hWnd = this->m_hWnd;
m_TrayIcon.uID = 1;
m_TrayIcon.hIcon = this->m_hIcon;
m_TrayIcon.uCallbackMessage = WM_TRAY_MESSAGE;
m_TrayIcon.uFlags = NIF_ICON | NIF_MESSAGE | NIF_TIP;
strcpy(m_TrayIcon.szTip, "Update Client");
Thanks,
Matt.
|
|
|
|
|
From MSDN docs for NOTIFYICONDATA.uFlags
NIF_INFO Use a balloon ToolTip instead of a standard ToolTip. The szInfo, uTimeout, szInfoTitle, and dwInfoFlags members are valid.
Don't worry about it. I make daft mistakes all the time. I nearly broke a monitor when I thought my computer was playing tricks on me. I'd define nLoop, and used mLoop. I now use a clearer font...
Iain.
|
|
|
|
|
Hi!
I am starting from ground up. I am with simple Win32 Application and I want add ATL functionality in it by fooling wizard. I planned:
1)a cpp file that has the same name as the project .
2)an ATL object map (the map can be empty, but it must be present).
3)an IDL file with the same name as the project and this file must have a Library block.
Need feedback on 2 and 3.
|
|
|
|
|
Is there any way to extract dialog from .rc and paste in doc by program? I am trying to make user interface spec generator.
Shin
|
|
|
|
|
Your program could open the .rc file, load it's dialog resource, then implement a CDialog based on this resource. After the dialog is drawn, display it, get it's handle and through the handle, it's device context. Then copy this device context into a new bitmap, and display the bitmap inside the document.
The easier way is just create a blank space in the spec generator with a comment "Add captured image here"
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
Can someone tell me how I can use an array to display this grid in my program.
9 - - - - - - - - -
8 - - - - - - - - -
7 - - - - - - - - -
6 - - - - - - - - -
5 - - - - - - - - -
4 - - - - - - - - -
3 - - - - - - - - -
2 - - - - - - - - -
1 - - - - - - - - -
1 2 3 4 5 6 7 8 9
|
|
|
|
|
Depending on the grid cell types, the array declaration would be
type-id declarator[10][10];
This code fragment creates a 10x10 matrix, in which each cell is of type type-id.
If you are wondering on drawing the actual grid, I suggest you go see some of the examples here in CodeProject. There are a set of grid controls available. The solution I presented here is relevant only to the actual data types concerned, that is, the contents of the cells.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
<code>
char grid[8][8] = {0};
int i, h = 0;
for (i = 0; i < 9; i++)
{
for (h = 0; h < 9; h++)
{
grid[i][h] = '-';
}
}
</code>
|
|
|
|