Get the hDC for a Canvas control
Hello
I have a DLL that takes a hDC parameter, which is then 'draw' something using Windows API. An example of this can be the function WinSDK TextOut (HDC hdc int nXStart int nYStart LPCTSTR lpString int cbString).
How could I get the hDC to a Canvas control or another control (not the Panel) in order to use these functions?
Also, are there caveats to be aware of?
Kind regards
Jason.
As far as I know, CVI controls are not windowed controls, so they do not have their own window handles and you cannot get a handle to the device context for them. It goes same for children signs CVI. You will only be able to get a handle to the device context for the main table covering.
Tags: NI Software
Similar Questions
-
How to get the phone for example number zero. 0612345678
Dear Adobe Flex Builder Professional,
I have a problem with getting the phone for example number zero. 0612345678
If I get the phone number following as input:
0612345678
I'll get the phone number in output:
612345678
The application was written in Adobe Flex Builder 3.
The code in the MXML file is:
<? XML version = "1.0" encoding = "utf-8"? >
"" < mx:Canvas xmlns:mx = "http://www.adobe.com/2006/mxml"
creationComplete = "init ()" "
horizontalScrollPolicy = "off" verticalScrollPolicy = "off" >
< mx:Metadata >
[Event (name = "customerSaveEvent", type = "events. CustomerEvent")]
[Event (name = "customerCancelEvent" type = "flash.events.Event")]
< / mx:Metadata >
< mx:Script >
<! [CDATA]
Import util.ComboBoxUtil;
Import mx.controls.Alert;
How to import events. CustomerEvent;
Import mx.collections.ArrayCollection;
Import mx.core.Application;
Import valueObject.Customer;
Import mx.validators.Validator;
Import mx.validators.PhoneNumberValidator;
private var phoneCheck:PhoneNumberValidator;
[Bindable]
public var selectedCustomer:Customer;
private function init (): void {}
this.cretePhoneValidator ();
if(this.selectedCustomer == null) {}
this.clearForm (null);
}
}
private function cretePhoneValidator (): void {}
phoneCheck = new PhoneNumberValidator();
phoneCheck.source = phone number;
phoneCheck.property = 'text ';
}
private function validateForm (): void {}
var validatorList:Array = new Array (emailCheck, phoneCheck);
Validator.validateAll (validatorList);
}
private function cancelClickHandler (): void {}
var cancelManageCustomerObj:Event = new Event ("customerCancelEvent");
dispatchEvent (cancelManageCustomerObj);
}
private function saveCustomer (): void {}
validateForm();
var c:Customer = null;
var selCust:Customer = Application.application.selectedCustomer;
If (selCust! = null) {}
c = selCust;
} else {}
c = new Customer();
}
c.setLastName (lastName.text);
c.setFirstName (firstName.text);
c.setStreet (street.text);
c.setPostal (postal.text);
c.setCity (city.text);
c.setEmail (email.text);
c.setPhoneNumber (new Number (phoneNumber.text));
c.setMailing (mailing.selectedItem.data);
c.setComment (comment.text);
var changed: client = Application.application.customerService.createOrUpdate (c);
var customerEventObj:CustomerEvent = new CustomerEvent ("customerSaveEvent", modified);
dispatchEvent (customerEventObj);
this.clearForm (selCust);
}
private void clearForm(selCust:Customer):void {}
if(selCust == null) {}
this.lastName.text = "";
this.firstName.text = "";
This.Street.Text = "";
This.postal.Text = "";
This.City.Text = "";
this.phoneNumber.text = "";
This.email.Text = "";
this.mailing.selectedIndex = 0;
This.Comment.Text = "";
}
focusManager.setFocus (lastName);
}
[]] >
< / mx:Script >
<!-mx:EmailValidator id = "emailCheck" source = "{email}" = "text" property
trigger = '{save}' triggerEvent = ' click on ' /-->
< mx:Form id = "manageCustomerForm" >
< mx:FormItem label = "Achternaam:" >
< mx:TextInput id = text = "{selectedCustomer.getLastName ("lastName")}" / >
< / mx:FormItem >
< mx:FormItem label = "Voorletters:" >
< mx:TextInput id = text = "{selectedCustomer.getFirstName ("firstName")}" / >
< / mx:FormItem >
< mx:FormItem label = "Straat:" >
< mx:TextInput id = text = "{selectedCustomer.getStreet () ' street'}" / >
< / mx:FormItem >
< mx:FormItem label = "zip code:" >
< mx:TextInput id = text = "{selectedCustomer.getPostal ('post')}" / >
< / mx:FormItem >
< mx:FormItem label = "Stad:" >
< mx:TextInput id = "City" text = "{selectedCustomer.getCity ()}" / >
< / mx:FormItem >
< mx:FormItem label = "number:" >
< mx:TextInput id = text = "{selectedCustomer.getPhoneNumber ('Phone number')}" / >
< / mx:FormItem >
< mx:FormItem label = "e-mail:" >
< mx:TextInput id = "email" text = "{selectedCustomer.getEmail ()}" / >
< / mx:FormItem >
< mx:FormItem label = "" unstable: ">"
< mx:TextArea id = "comment" text = "{selectedCustomer.getComment ()}" "
width = "447" height = "144" / >
< / mx:FormItem >
< mx:FormItem label = "send:" >
< mx:ComboBox id = dataProvider = "{Application.application.comboBoxUtil.yesNo"mailing"} '"
selectedIndex = "{ComboBoxUtil.getIndex (selectedCustomer.getMailing ())}" / >
< / mx:FormItem >
< mx:HBox id = "manageButtonBox" >
< mx:Button id = "Save" label = "Opslaan" click = "saveCustomer ()" / > "
< mx:Button id = "resetButton" label = "Wis" click = "clearForm (null)" / > "
< mx:Button id = "cancelButton" label = "Annuleer" click = "cancelClickHandler ()" / > "
< / mx:HBox >
< / mx:Form >
< / mx:Canvas >The code in the SQL file is:
create the customer table)
ID integer not null primary key autoincrement,.
lastName varchar (50),
firstName varchar (50),
Street varchar (50),
City varchar (50),
postal varchar (10),
Telephone INT number (10),
Email varchar (50),
sending Boolean default false,
Comment by varchar (255)
);create table (treatment)
ID integer not null primary key autoincrement,.
Date Date,.
treatment varchar (255),
whole customerId not null,
constraint fk_customer foreign key (customerId) references customer (id)
);create table (user)
ID integer not null primary key autoincrement,.
loginName varchar (50) not null,
lastName varchar (50) not null,
firstName varchar (50) not null,
password varchar (50) not null,
Active Boolean true not null default,
accessright varchar (10) not null
);create table (of the order of the day
ID integer not null primary key autoincrement,.
whole userId not null,
Date Date,.
time integer,
full minute,
Description varchar (50),
constraint fk_user foreign key (userId) references user (id)
);create table (license)
ID integer not null primary key autoincrement,.
key varchar (50),
Val varchar (50)
);I hope someone can help me with this problem.
Hi Buxsnl,
I think that I already gave the answer in my previous post. But think that you have not implemented it.
The threshold of the code is not necessary...
m:System.NET.SocketAddress.ToString (), c.setPhoneNumber (new Number (phoneNumber.text));
Instead you can replace it with the below a...
c.setPhoneNumber (phoneNumber.text);
and the function setPhoneNumber() in your client class must be less to:
public void setPhoneNumber(phoneNumber:String):void
{
//
}
Can send you the code to your client class... ??
Thank you
Jean Claude
-
I wanted to know if I could get the passwords for e-mail, facebook, etc for other users on my account? Please let me know. Thank you.
It's in the privacy of having the username and password of someone, but it is advisable to monitor the activity of your child on the internet. In Windows Vista, you have the parental control feature in Control Panel (it's available in some editions). I suggest to go Control Panel and user account and chose to activate and follow your child's account. For Parental control in Windows Vista, take a look on:
http://www.Microsoft.com/Windows/Windows-Vista/features/parental-controls.aspx
There is also another product of Windows Live, which calls the family safety, to use the mother and the child would need live account. You could learn more about it in view:
http://download.live.com/Familysafety
By these tools, you can monitor your child safety with respection of privacy. It is not a good practice to get the password of your children. Also, you should give it a safety advises on internet. I think it would be a good website to use resources for your daughter:
-
If I have the first generation iWatch I'll be able to get the update for new applications and look at faces? I know that I couldn't display or the waterproof function to the water.
Hello
The next operating system update, watch OS 3, will be available for all Apple Watch models, including the first generation watches.
We should go out on 13 September, after which it can be installed by following the steps detailed here:
More information:
-
How to get the manual for Satellite Pro 4200?
How to get the manual for Pro 4200. I have download olm_up and setup.exe (72 kt) of http://eu.computers-toshiba-europe.com?.
Hello
Please visit this link:
http://EU.computers.Toshiba-Europe.com/cgi-bin/ToshibaCSG/download_manuals.jspI m you will find a good manual of your device.
Good bye
-
Can't get the drivers for Satellite A135-S4467
I do something wrong, because I can't find a way to get the drivers for my laptop.
No matter what options I select on the Toshiba supports site driver downloads, I can't find my model.
It does not seem to exist in the series, or sections of archives.Will be it someone please tell me where I can find the drivers for my A135-s4467? (PSAD0U)
Thank you
Jeff frustrated.
I think you have a USA model.
Try this site: http://www.csd.toshiba.com/cgi-bin/tais/su/su_sc_modSel.jsp
-
Hi everyone, this is my first post, also help on the post would be appreciated.
I bought ipad air 1 after that 2013 but can not get the pages for free. Numbers and imovie I can. IOS9 running at the moment. I have pages when I connect on icloud on my pc. Can I transfer iPad app, because it is not in the ILO purchased in itunes.
Thanks in advance
Newbie
The only way to install an ipad app is through the app store. PC or Mac software does not run on the ipad. Search in the contacts link at the bottom right of this page. Give apple a call.
I guess is the icon for pages in icloud for storing documents pages. At the same time, apple had a cloud based pages. Not sure what happened to her.
R
-
Where to get the SDK for the Toshiba Bluetooth stack?
This subject was little addressed in another post, but never really answered. Does anyone know where to get the SDK for the Toshiba Bluetooth stack?
Thank you
Hello
On the page Web of Toshiba, you will only get the latest version of the Toshiba Bluetooth stack. Unfortunately, I put t found any information on SDK.
For more information please visit the Toshiba Bluetooth information site:
http://APS.toshiba-tro.de/Bluetooth/Good luck
-
PX2 - 300 d - where can I get the MIB for a LeNovoEMC PX2 - 300 d?
Hello
I would get the MIB for this product.
Where can I get?
Thank you.
Bird,
Just found this:
If a client requests a mib file for SNMP implementation, this is the link to click:
http://
/manage/mibs/lenovoemcmib.txt -
4540 proBook s: can I get the drivers for windows 10 for my probook 4540 s
Can I get the drivers for windows 10 for my 4540 s probook
Windows 10 will include more if not all the necessary drivers, just installed on a HP PC and has each of them with the exception of the guard hard drive software, if one is missing in Device Manager, Windows 7 drivers should work.
-
Can anyone help please. I used to be able to get the symbol for the pound Sterling by pressing ALT and 0163 at the same time, maybe you'll know
That's how you used to make the binary code on non-electric machines punch original card. This will make me sound old?
It's very frustrating that nothing bought here in Spain is not consistent with the rest of Europe, it is purely for the Spanish market. I need to use this and other symbol that don't appear on my keyboard, but it is very - very sensitive touch and I think I must have hit another function key for stopping this work but can find nothing written on the computer and the manual was not in the box. as usual.
Please let know us if possible thank you.
Start > all programs > Accessories > system tools > character map
http://symbolcodes.TLT.PSU.edu/accents/Charmap.html
You can drag the key and drop it in your report or use the code indicated in the bottom right of the application
Key codes Alt Windows
-
Is it possible to get the files for windows vista, so I can reinstall my system?
Hello
Im a user of linux on one machine HP Pavilion dv5-1095eo leisure. IM tired to restart my machine to run a windows OS, so is possible for me to get the files for windows vista. I got the windows key attached under the computer and I don't have any windows CD when I brought the machine.
Hello:
You can do your own installation disc Vista too if you wish.
If you can read your 25-character product key MS, you can make your own Windows Vista installation disc. You just download the 3 files you need on the link below and read all the instructions to create a Setup bootable DVD disk using imageburn.
When I went to compile the ISO file, ImageBurn gave a message on a WIM file, file and ISO, and if I wanted to burn it in a different format.
I selected no, make the ISO file.
It was not so hard to do. I burned both the disk of 64-bit and 32-bit disk in case I ever need them.
I tested both of them (just before going forward with the actual facility) and they seem to work perfectly.
Apparently, when you enter the product key, he knows which version of Vista you have.
After you have successfully installed vista, you can download the drivers you need your PC support and driver page.
Paul
-
How can I get the drivers for my aspire 3100 after that I installed windows 7
I have a aspire 3100 that came with Vista, I installed Windows 7 and am wondering where I can get the drivers for my system updated. Acer does not list them.
You must perform a search by yourself great web, many are available on the support page equipment manufacturers.
-
How can I get the driver for a Dell Latitude D800 XP wireless?
I have a Dell Latitude D800 that I just did a clean install of XP SP3 to and the Wireless does not work. How can I get the driver for the card wireless to the computer?
Download drivers
Visit the manufacturer's Web site and select your model (this is usually done in the Support section). You should be able to download drivers for your model if they have drivers for your version of Windows. Download the driver and then follow the instructions to install.
Reference Dell Driver Downloads:
-
someone sent me information to try to fix my cd/dvd doesn't work do not and after that following the steps, it is still not work.i said, maybe I need to reinstall the driver if someone can send me the link to microsoft so I can get the driver for reinstall-thank you
Hello
1 did you change on your computer?
2 did you receive an error message?
3. What is the number of the model of the computer?
Method 1:
I suggest you follow the link and check.
Your CD or DVD drive is missing or is not recognized by Windows or other programs
http://support.Microsoft.com/kb/982116
Your CD or DVD drive cannot read or write media
http://support.Microsoft.com/mats/cd_dvd_drive_problems/en-us
Method 2:
I suggest you to install the drivers from the manufacture of the product and check.
Maybe you are looking for
-
affter Update 9.3.2 whatsapp blocked please fix now
affter Update 9.3.2 whatsapp blocked please fix now
-
HP Pavilion: HP pavilion 68354049 lock Code
I'm looking at an HP Pavilion with a member of my family has managed to put an administrator password at startup but they do not know what is the password, I have the code 68354049 was wondering if someone can help because I'm stuck without it. Thank
-
my iPhone 6 s more the photos aren't as sharp as they appear in stores
I use my iPhone 6 s more, bought in March 28, 2016, I take photos during the day and they do not seem to be as strong as I think they should be. The photos I see in Apple stores show photos where you can zoom and the details is very clear, however wh
-
Satellite Pro A100-080: NVidia display driver's break in 3D games
Hello I have some problems with the display driver since I bought the laptop 9 months ago. I tried to install each new driver published on the toshiba site but no driver is running stable on my system. The problem is that my laptop crashes with blue
-
Memeroy upgrade in Satellite A100 - 529 does not work
I am trying to upgrade memory on my Satellite A100-529 (PSAA2E). The system comes standard with DDR2 PC2-4200 1x512mo. I installed 2x512MB DDR2 PC2 5300 and the system tries to turn 5 x without success. All the documentation said that RAM DDR is back